Mutex: Cleanup and remove redundant code.

This commit is contained in:
bunnei 2015-01-20 18:33:23 -05:00
parent f09806aed2
commit 2f3020a102
3 changed files with 30 additions and 48 deletions

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;