Properly wake semaphores in priority order.

This commit is contained in:
Unknown W. Brackets committed 2013-01-18 01:38:13 -08:00
1 parent 4c510b5649
commit 4a56873541
3 files changed
+14 -31

No files matched your search

+5
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
//////////////////////////////////////////////////////////////////////////