Mutex: Cleanup and remove redundant code.

This commit is contained in:
bunnei committed 2015-01-21 20:48:36 -05:00
1 parent f09806aed2
commit 2f3020a102
3 files changed
+30 -48

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ static bool CheckWait_AddressArbiter(const Thread* thread, VAddr wait_address) {
/// Stops the current thread
void Thread::Stop(const char* reason) {
// Release all the mutexes that this thread holds
ReleaseThreadMutexes(GetHandle());
ReleaseThreadMutexes(this);
ChangeReadyState(this, false);
status = THREADSTATUS_DORMANT;