Files
AnyPS5/docs/dev
MaxandClaude Opus 5.5 dbb27b9ef1 feat(libSceUsbd): handle events with FreeBSD libusb's event lock and handler thread
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]>
2026-10-28 15:19:36 +01:00
..