mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
sceUsbdLockEvents, sceUsbdTryLockEvents, sceUsbdUnlockEvents, sceUsbdLockEventWaiters, sceUsbdUnlockEventWaiters, sceUsbdWaitForEvent, sceUsbdEventHandlerActive, sceUsbdHandleEvents and sceUsbdHandleEventsLocked follow FreeBSD 11.4 libusb10_io.c: one lock for events and their waiters, one handler thread that releases the lock while the host libusb handles events, and waiters that are woken when the handler unlocks and take over handling when there is none. sceUsbdEventHandlingOk now reports whether the calling thread is the handler, and sceUsbdHandleEventsTimeout takes the same path. Co-Authored-By: Claude Opus 5.5 <[email protected]>