News for hackers. Stuff that matters.
Re:Rust: Dropping heavy things in another thread can make yo... by qcoh on Saturday May 30, 2020 @01:48PM (#23363056)
Out of curiosity, how did you do that in C++?
Re:Rust: Dropping heavy things in another thread can make yo... by Ididntdothis on Saturday May 30, 2020 @01:53PM (#23363110)
It depends. Either iterate over the vector and delete the objects or just call clear(). Obviously you have to be sure that nobody else is accessing it at the same time.