|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85797 - trunk/boost/sync/locks
From: andrey.semashev_at_[hidden]
Date: 2013-09-19 17:15:15
Author: andysem
Date: 2013-09-19 17:15:15 EDT (Thu, 19 Sep 2013)
New Revision: 85797
URL: http://svn.boost.org/trac/boost/changeset/85797
Log:
Fixed incorrect check in unlock().
Text files modified:
trunk/boost/sync/locks/unique_lock.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/sync/locks/unique_lock.hpp
==============================================================================
--- trunk/boost/sync/locks/unique_lock.hpp Thu Sep 19 17:13:25 2013 (r85796)
+++ trunk/boost/sync/locks/unique_lock.hpp 2013-09-19 17:15:15 EDT (Thu, 19 Sep 2013) (r85797)
@@ -271,7 +271,7 @@
{
BOOST_THROW_EXCEPTION(lock_error(detail::system_namespace::errc::operation_not_permitted, "boost unique_lock has no mutex"));
}
- if (m_is_locked)
+ if (!m_is_locked)
{
BOOST_THROW_EXCEPTION(lock_error(detail::system_namespace::errc::operation_not_permitted, "boost unique_lock doesn't own the mutex"));
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk