Properly wake semaphores in priority order.
This commit is contained in:
parent
4c510b5649
commit
4a56873541
3 changed files with 14 additions and 31 deletions
|
@ -1793,6 +1793,11 @@ u32 __KernelGetThreadPrio(SceUID id)
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool __KernelThreadSortPriority(SceUID thread1, SceUID thread2)
|
||||
{
|
||||
return __KernelGetThreadPrio(thread1) < __KernelGetThreadPrio(thread2);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// WAIT/SLEEP ETC
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue