Fix a currently unused unique_lock function. Thanks to Lioncash.
This commit is contained in:
parent
baa29f571c
commit
4f4aa4860d
|
@ -318,9 +318,12 @@ public:
|
||||||
|
|
||||||
mutex_type* release()
|
mutex_type* release()
|
||||||
{
|
{
|
||||||
return mutex();
|
auto const ret = mutex();
|
||||||
|
|
||||||
pm = NULL;
|
pm = NULL;
|
||||||
owns = false;
|
owns = false;
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool owns_lock() const
|
bool owns_lock() const
|
||||||
|
|
Loading…
Reference in New Issue