mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
Follow FreeBSD 11's do_sem_wait and do_sem_wake (COMPAT_FREEBSD9/10) on a struct _usem: a wait sets _has_waiters, returns at once while _count is non-zero and otherwise sleeps on the semaphore's queue; a wake clears _has_waiters when one waiter is left and releases one waiter. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>