Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2007-08-20 03:54:57


Robert Ramey wrote:
> Thanks for pointing this out.
>
> It looks to me that this would require linking with the thread library.
>
> I was thinking more along the lines of something built with
> the code in boost/detail/lightweigth_mutex

'lightweight_mutex' can't be safely initialized statically and there is
no "lightweight_once". Without either of it, the Singleton wouldn't work
properly with shared libraries - and so would the libraries using it.

I'd have to go for the native threading APIs or extend the "lightweight
suite". I put it on my list, for now.

Regards,
Tobias


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