
1 Nov
2006
1 Nov
'06
4:45 p.m.
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.