
23 Jul
2008
23 Jul
'08
10:36 a.m.
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.