
16 Jun
2017
16 Jun
'17
12:31 p.m.
Hi, Does Boost have anything like concurrency TS' atomic_shared_ptr? Gr, -- Olaf

16 Jun
16 Jun
12:42 p.m.
Hi,
Does Boost have anything like concurrency TS' atomic_shared_ptr?
No, only http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2632.html

3:39 p.m.
Olaf van der Spek wrote:
Sure, why not. https://github.com/boostorg/smart_ptr/commit/2964ed2379cf47778b18954b8d3501f...

8:49 p.m.
Gottlob Frege wrote:
I made it a bit more complex: https://github.com/boostorg/smart_ptr/commit/67d897a5330e99821adcebc82f605dd... The reason it was so simple was because it was using the already existing atomic functions. And no, it's not lock-free. Lock-freedom requires significantly more complexity (and a double-width CAS).
2877
Age (days ago)
2880
Last active (days ago)
7 comments
3 participants
participants (3)
-
Gottlob Frege
-
Olaf van der Spek
-
Peter Dimov