Could use some help from Rust Twitter on this one: I want to provide each thread with a Vec in a thread-local. Then from another thread I want to periodically take ownership of the thread-local vecs and swap them with empty ones. Is there a good pattern/lib for this?
Ohh, yes -- I like this suggestion! And uhh, I hope I don't want hazard pointers? I don't know what they are but they sound like trouble haha.
-
-
They are async garbage collection, like epoch baser reclaim. Subtely different properties. The channel idea also has a benefit that new threads deep into program exec still can participate, you arent bound to all threads neededing create at startup. You should consider ...
-
How to signal that a thread has terminated though, but i guess the arc makes that safe given you wont use after free.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.