
20 Aug
2007
20 Aug
'07
7:54 a.m.
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