Skip to content

Commit

Permalink
Fix a currently unused unique_lock function. Thanks to Lioncash.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-woyak committed Jan 8, 2013
1 parent baa29f5 commit 4f4aa48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Core/Common/Src/StdMutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,12 @@ class unique_lock

mutex_type* release()
{
return mutex();
auto const ret = mutex();

pm = NULL;
owns = false;

return ret;
}

bool owns_lock() const
Expand Down

0 comments on commit 4f4aa48

Please sign in to comment.