From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-04-08 04:58:49
Christoph Ludwig wrote:
> I did not follow the discussions about lock free implementations for
> shared_ptr closely. But I saw that they make use of inline assembler
> whence there cannot be a lock free implementation that is portable
> across all platforms. I therefore gather that the previous
> implementation is still available as a fall-back for platforms
> without a lock-free implementation, isn't it?
> Can the old implementation be made available in 1.33 by means of a
> preprocessor switch?
On Windows, the old spinlock-based implementation is no longer available;
the new implementation is better in every respect.
On other platforms the old pthread_mutex implementation can be forced with
In both cases a single-threaded version can be forced with
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk