Boost logo

Boost Users :

Subject: Re: [Boost-users] owns_lock on lock not on mutex
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2015-10-12 09:54:23


On 10/12/2015 6:03 AM, gast128 wrote:
> there is an owns_lock on the lock type but not on the mutex. This is quite
> unhandy. Any reason why?

A mutex could never own a lock on itself. The owner of a lock is the one
responsible for calling unlock on it.

Regards,

-- 
Agustín K-ballo Bergé.-
http://talesofcpp.fusionfenix.com

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