Boost logo

Boost Users :

Subject: Re: [Boost-users] owns_lock on lock not on mutex
From: gast128 (gast128_at_[hidden])
Date: 2015-10-12 17:49:02


Mikael Olenfalk <mikael.olenfalk <at> gmail.com> writes:

> On Mon, Oct 12, 2015 at 11:03 AM, gast128 <gast128 <at> hotmail.com>
wrote:Hello all,
> there is an owns_lock on the lock type but not on the mutex. This is quite
> unhandy. Any reason why?
>
> The headers:
>
>   boost/thread/testable_mutex.hpp
>   boost/thread/is_locked_by_this_thread.hpp
>
> Might be what you are looking for. They do not seem to be documented so I
do not know of their status.

Yes this seems what I need; possibly to use the test_mutex only in debug.


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