Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-07-23 06:36:42


Talbot, George:

> Hi all,
>
> A while back (~2006 I think) I was asking around on this list about
> using boost::shared_ptr<T> to build a composite data structure that can
> be accessed and modified by multiple threads.
>
> Peter Dimov's suggestion at the time was to write a wrapper class for
> boost::shared_ptr<T> that would protect access to the
> boost::shared_ptr<T> with a spinlock. I've done this, and this works
> pretty good in my application. I'm interested in contributing this code
> to BOOST, as it's been quite useful.

The SVN now contains an implementation of the recently accepted for
inclusion into C++0x

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2674.htm

This feature be part of the upcoming 1.36.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk