mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-28 20:58:35 +01:00
sceKernelDeleteSema() not returning 0?
Seems to be a bug outside this func, adding a comment at least.
This commit is contained in:
1 parent
b58032039b
commit
33559d23db
1 file changed
+3
-1
@@ -140,7 +140,9 @@ int sceKernelDeleteSema(SceUID id)
|
||||
Semaphore *s = kernelObjects.Get<Semaphore>(id, error);
|
||||
if (s)
|
||||
{
|
||||
// TODO: Should this reschedule? threads/semaphores fails if it doesn't.
|
||||
// TODO: Should this reschedule?
|
||||
// threads/semaphore doesn't get final threads if not, but gets wrong result if so.
|
||||
// Probably it should and there's a bug with the registers?
|
||||
if (__KernelClearSemaThreads(s, SCE_KERNEL_ERROR_WAIT_DELETE))
|
||||
__KernelReSchedule("semaphore deleted");
|
||||
|
||||
|
||||
Reference in new issue
Block a user