cosmopolitan/third_party/nsync/mem
Justine Tunney 3c61a541bd
Introduce pthread_condattr_setclock()
This is one of the few POSIX APIs that was missing. It lets you choose a
monotonic clock for your condition variables. This might improve perf on
some platforms. It might also grant more flexibility with NTP configs. I
know Qt is one project that believes it needs this. To introduce this, I
needed to change some the *NSYNC APIs, to support passing a clock param.
There's also new benchmarks, demonstrating Cosmopolitan's supremacy over
many libc implementations when it comes to mutex performance. Cygwin has
an alarmingly bad pthread_mutex_t implementation. It is so bad that they
would have been significantly better off if they'd used naive spinlocks.
2024-09-02 23:45:42 -07:00
..
array.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
BUILD.mk Avoid legacy instruction penalties on x86 2024-07-31 01:02:38 -07:00
nsync_counter.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
nsync_cv.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
nsync_debug.c Make mmap() scalable 2024-07-05 23:26:00 -07:00
nsync_mu_wait.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
nsync_note.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
nsync_once.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
nsync_sem_wait.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
nsync_wait.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00