mirror of https://git.musl-libc.org/git/musl
Browse Source
empirically, this increases the maximum rate of wait/post operations between two threads by 20-150 times on machines I tested, including x86 and arm. conceptually, it makes sense to do some spinning because semaphores are intended to be usable as a notification mechanism between threads, not just as locks, and low-latency notification is a valuable property to have.master
1 changed files with 5 additions and 0 deletions
Loading…
Reference in new issue