mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
Lock and timed lock now try the mutex up to the spin count with a pause between tries, then up to the yield count with a yield before each try, before they block, as FreeBSD 11.4's mutex_lock_sleep does. Trylock and a lock the thread already holds do not spin. A uniprocessor host skips the spins and keeps the yields. Co-Authored-By: Claude Opus 5.5 <[email protected]>