Mutex: Release all held mutexes when a thread exits.

This commit is contained in:
Subv 2014-12-07 15:44:21 -05:00
parent e3c8e4901c
commit 64128aa61a
3 changed files with 56 additions and 22 deletions

View file

@ -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