The best Side of Atomic
– tc. Commented Dec 1, 2010 at eighteen:20 @fyolnish I am undecided what _val/val are, but no, probably not. The getter for an atomic duplicate/retain residence wants to make certain that it doesn't return an object whose refcount becomes zero owing the setter getting termed in One more thread, which primarily usually means it should read throug