Mutex: Cleanup and remove redundant code.
This commit is contained in:
parent
f09806aed2
commit
2f3020a102
3 changed files with 30 additions and 48 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue