You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: [libpthreadglue] tighten error handling in OS-abstraction layer
pte_osThreadCreate previously:
- ignored the return value of sceKernelCreateSema for cancelSem
- on the sceKernelCreateThread failure paths, leaked the cancelSem
semaphore that had just been created
Reorder so each resource is validated immediately after allocation and
cleaned up in reverse order on failure. Also propagate
sceKernelCreateSema failures from pte_osMutexCreate and
pte_osSemaphoreCreate as PTE_OS_NO_RESOURCES instead of writing a
negative handle to *pHandle as if it were valid.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments