Boost logo

Boost Users :

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


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.
>


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