From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2006-11-01 12:14:55
Peter Dimov wrote:
> 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.
Yes I know this, and I also explicitly stated it.
But on the other hand: A mutex must not be locked from
one thread and unlocked from another too. True?
So this (unscoped) usage is dangerous in any case, isn't it?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk