• R
    cheap special-case optimization for normal mutexes · 124b4ebc
    Rich Felker 提交于
    cycle-level benchmark on atom cpu showed typical pthread_mutex_lock
    call dropping from ~120 cycles to ~90 cycles with this change. benefit
    may vary with compiler options and version, but this optimization is
    very cheap to make and should always help some.
    124b4ebc
pthread_mutex_lock.c 436 字节