3 ms·
Musl libc also does this for threads, spinning 100 times by default before switching to a heavier system wait (see line 71): https://git.musl-libc.org/cgit/musl
by mnurzia 4y ago
Musl libc also does this for threads, spinning 100 times by default before switching to a heavier system wait (see line 71):
https://git.musl-libc.org/cgit/musl/tree/src/thread/pthread_mutex_timedlock.c#n71 https://git.musl-libc.org/cgit/musl/tree/src/thread/pthread_...