Mutex: Release all held mutexes when a thread exits.
This commit is contained in:
parent
e3c8e4901c
commit
64128aa61a
3 changed files with 56 additions and 22 deletions
|
@ -24,4 +24,10 @@ ResultCode ReleaseMutex(Handle handle);
|
|||
*/
|
||||
Handle CreateMutex(bool initial_locked, const std::string& name="Unknown");
|
||||
|
||||
/**
|
||||
* Releases all the mutexes held by the specified thread
|
||||
* @param thread Thread that is holding the mutexes
|
||||
*/
|
||||
void ReleaseThreadMutexes(Handle thread);
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue