
1 Nov
2006
1 Nov
'06
5:14 p.m.
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? Roland