Boost logo

Boost :

From: Robert Zeh (razeh_at_[hidden])
Date: 2005-03-28 09:06:36

"Peter Dimov" <pdimov_at_[hidden]> writes:

> So, shared_ptr is now lock-free on Windows, but not on the other
> platforms. We need a portable atomic primitive for that. The only
> alternative are the internal libstdc++ helpers __atomic_add and
> __exchange_and_add.
> But in order to use them correctly, we need to know what their exact
> semantics are with respect to memory synchronization.
> To the best of my knowledge, this is not documented anywhere.
> What do we do now?
> --
> Peter Dimov
> _______________________________________________
> Unsubscribe & other changes:

Could the primitives used by the lock-free shared_ptr be made
available from boost threads? It would be helpful for other people
writing lock-free code.

Robert Zeh

Boost list run by bdawes at, gregod at, cpdaniel at, john at