|
Boost : |
Subject: Re: [boost] [shared_ptr][thread] spinlock initialization
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2012-09-27 05:44:59
On Sep 26, 2012, at 6:17 PM, Yi Ding <yi.s.ding_at_[hidden]> wrote:
> I started using the spinlock in boost/smart_ptr/detail/spinlock.hpp
> and discovered that it needs to be manually initialized, even for the
> spinlock_sync version, which became a nasty bug when it manifested
> itself. This seems a bit out of sync with the rest of the mutexes in
> boost::thread.
>
> Now, I'm guessing that the fact that the spinlock is in boost::detail
> means that it's not really for outside consumption (newbie boost user
> here), but is there something in the works that will be?
The detail namespace is so named because anything in it is an implementation detail. There is no documentation, you should expect no support, and you should expect breaking changes from one release to the next.
(I have no idea whether there are or will be official alternatives for what you're using.)
___
Rob
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk