mirror of
https://github.com/boostorg/thread.git
synced 2026-02-09 23:42:18 +00:00
try_mutex locks throw if unlocked twice
[SVN r34249]
This commit is contained in:
@@ -161,6 +161,10 @@ namespace boost
|
||||
}
|
||||
void unlock()
|
||||
{
|
||||
if(!locked())
|
||||
{
|
||||
throw boost::lock_error();
|
||||
}
|
||||
m.unlock();
|
||||
is_locked=false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user