Just found some interesting code in jemalloc's implementation of a mutex:
if (ncpus == 1) { goto label_spin_done;}
https://github.com/jemalloc/jemalloc/blob/1df9dd35154ca460facbd74f779a13dcece78dac/src/mutex.c#L51-L53
Everyone is welcome as long as you follow our code of conduct! Thank you. Mastodon.cloud is maintained by Sujitech, LLC.