request: make atomic operations (boost/detail/atomic_count*) available for library users
Hi, Is it possible that atomic operations in Boost are made available for library users? `shared_ptr' is good, but sometimes one might need the low-level operations too. Paul
Paul Pogonyshev wrote:
Hi,
Is it possible that atomic operations in Boost are made available for library users? `shared_ptr' is good, but sometimes one might need the low-level operations too.
The atomic operations are likely to remain an internal detail as they are only available on some Boost platforms. You're probably better off investigating Hans Boehm's libatomic_ops (http://www.hpl.hp.com/research/linux/atomic_ops/). There is a rough proposed C++ interface for atomic ops at http://www.hpl.hp.com/personal/Hans_Boehm/c++mm/atomics.h.txt which I think is meant to implementable using libatomic_ops. http://www.hpl.hp.com/personal/Hans_Boehm/c++mm/atomics.h.txt Ben.
Ben Hutchings wrote:
Paul Pogonyshev wrote:
Hi,
Is it possible that atomic operations in Boost are made available for library users? `shared_ptr' is good, but sometimes one might need the low-level operations too.
The atomic operations are likely to remain an internal detail as they are only available on some Boost platforms. You're probably better off investigating Hans Boehm's libatomic_ops (http://www.hpl.hp.com/research/linux/atomic_ops/).
Thanks for the pointer. But is it not possible that Boost expands its implementation to other platforms? At least in the form of shared mutex locking in non-implemented-in-a-proper-way cases, with appropriate note in docs? I would really appreciate atomic operations as an addition to the Boost Threads library and avoid more dependencies... Paul
participants (2)
-
Ben Hutchings
-
Paul Pogonyshev