Properly wake semaphores in priority order.

This commit is contained in:
Unknown W. Brackets 2013-01-17 00:45:13 -08:00
parent 4c510b5649
commit 4a56873541
3 changed files with 14 additions and 31 deletions

View file

@ -1793,6 +1793,11 @@ u32 __KernelGetThreadPrio(SceUID id)
return 0;
}
bool __KernelThreadSortPriority(SceUID thread1, SceUID thread2)
{
return __KernelGetThreadPrio(thread1) < __KernelGetThreadPrio(thread2);
}
//////////////////////////////////////////////////////////////////////////
// WAIT/SLEEP ETC
//////////////////////////////////////////////////////////////////////////