Boost logo

Boost Users :

Subject: [Boost-users] [boost-users][thread] second lock locks the owning thread?
From: Igor R (boost.lists_at_[hidden])
Date: 2008-12-28 09:23:57


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net