
21 Apr
2008
21 Apr
'08
3:06 p.m.
afaict, boost's smart pointer classes are not thread-safe They are not. I have a version that is, as long as you don't care about weak pointers. It still needs a lot of work however. The interesting thing about a ref counted lock-free smart ptr is that it is possible to easily make any program lock free. Not that it will be more efficient than a lock based one, but for small objects it works great.
is the code available somewhere? i had some trouble, implementing a lock- free boost-style shared_ptr class and started to write a smart pointer with a different api ... cheers, tim -- tim@klingt.org http://tim.klingt.org I had nothing to offer anybody except my own confusion Jack Kerouac