top | item 39322129

(no title)

FreeFull | 2 years ago

Not every program that's written will even be multithreaded, and there's a significant cost to using atomic operations when you don't need them. What is the disadvantage of having non-atomic Rc be available?

discuss

order

skitter|2 years ago

And Rc can still be useful for multithreaded programs. Not every value needs to be shared between threads.