Comment on Too dangerous for C++parentComments−FreeFull2yNot 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?−skitter2yAnd Rc can still be useful for multithreaded programs. Not every value needs to be shared between threads.
Comments
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?
And Rc can still be useful for multithreaded programs. Not every value needs to be shared between threads.