2
0
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:
Anthony Williams
2006-06-08 16:39:21 +00:00
parent 781794aa2d
commit 08041bf58e
2 changed files with 6 additions and 0 deletions

View File

@@ -161,6 +161,10 @@ namespace boost
}
void unlock()
{
if(!locked())
{
throw boost::lock_error();
}
m.unlock();
is_locked=false;
}