
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 BOOST_SP_USE_PTHREADS. In both cases a single-threaded version can be forced with BOOST_SP_DISABLE_THREADS.