Skip to content

Commit

Permalink
Reschedule after acquiring a lock.
Browse files Browse the repository at this point in the history
This matches the actual test results.
  • Loading branch information
unknownbrackets committed Nov 20, 2012
1 parent 2613ed8 commit a539580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Core/HLE/sceKernelMutex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ void sceKernelLockMutex(SceUID id, int count, u32 timeoutPtr)
{
mutex->nm.lockLevel += count;
mutex->nm.lockThread = __KernelGetCurThread();
// Nobody had it locked - no need to block

// Needed to get the proper order per real PSP.
__KernelReSchedule("mutex locked");
}
else if ((mutex->nm.attr & PSP_MUTEX_ATTR_ALLOW_RECURSIVE) && mutex->nm.lockThread == __KernelGetCurThread())
{
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"string/string",
"gpu/callbacks/ge_callbacks",
"threads/mbx/mbx",
"threads/mutex/mutex",
"threads/semaphores/semaphores",
"threads/semaphores/cancel/cancel",
"threads/semaphores/create/create",
Expand All @@ -49,7 +50,6 @@
# These are the next tests up for fixing. These run by default.
"threads/fpl/fpl",
"threads/msgpipe/msgpipe",
"threads/mutex/mutex",
"threads/scheduling/scheduling",
"threads/semaphores/priority/priority",
"threads/semaphores/wait/wait",
Expand Down

0 comments on commit a539580

Please sign in to comment.