mirror of https://git.musl-libc.org/git/musl
Browse Source
the design used here relies on the barrier provided by the first lock operation after the process returns to single-threaded state to synchronize with actions by the last thread that exited. by storing the intent to change modes in the same object used to detect whether locking is needed, it's possible to avoid an extra (possibly costly) memory load after the lock is taken.master
4 changed files with 12 additions and 6 deletions
Loading…
Reference in new issue