Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-11-01 11:45:53


Roland Schwarz wrote:

> Btw.: I never understood why one wanted direct locking of a mutex
> on Boost.Thread. You always have been able to say:
>
> boost::mutex mx;
> boost::scoped_lock lk(mx,false);

No, lk is explicitly documented as being not thread safe. When two threads
attempt to lock lk at the same time, the behavior is undefined.


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