[boost-users][thread] second lock locks the owning thread?
28 Dec
2008
28 Dec
'08
2:23 p.m.
Hello, I encountered strange situation (1.37, VC9SP1, WinXPSP3): boost::mutex m; boost::mutex::scoped_lock lock(m); boost::mutex::scoped_lock lock(m); // this one locks the thread Is this correct behavior or a bug? Thanks.
28 Dec
28 Dec
2:47 p.m.
New subject: [boost-users][thread] second lock locks the owning thread?
Ok, I realised that this is behavior "by design", and that I should use recursive_mutex.
I encountered strange situation (1.37, VC9SP1, WinXPSP3):
boost::mutex m; boost::mutex::scoped_lock lock(m); boost::mutex::scoped_lock lock(m); // this one locks the thread
Is this correct behavior or a bug?
Thanks.
5796
Age (days ago)
5796
Last active (days ago)
1 comments
1 participants
participants (1)
-
Igor R