So let’s say you want an atomic pointer to a reference counted object, i.e. threads can atomically swap out the pointer. Normally this can’t work because if the reference count is stored in the object, there’s no way to load the pointer *and* increase the count, together atomic.
-
-
yeah, but I think that only fails on writes
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.