Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4648: boost::lock_error Thrown While Using Upgrade Locks
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-14 07:16:17
#4648: boost::lock_error Thrown While Using Upgrade Locks
-------------------------------+--------------------------------------------
Reporter: bornlibra23 | Owner: anthonyw
Type: Support Requests | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.43.0 | Severity: Problem
Resolution: | Keywords: Boost.Thread boost::lock_error Synchronization
-------------------------------+--------------------------------------------
Comment (by bornlibra23):
Is the problem I am facing due to the following statement in the
documentation? If yes then what should I use the locks for? To protect
against my own thread knowing that these locks are not recursive?
The member functions of boost::upgrade_lock are not thread-safe. In
particular, boost::upgrade_lock is intended to model the upgrade ownership
of a Lockable object by a particular thread, and the member functions that
release ownership of the lock state (including the destructor) must be
called by the same thread that acquired ownership of the lock state.
bornlibra23
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4648#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC