cosmopolitan/third_party/nsync/testing
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
..
atm_log.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
atm_log.h Add *NSYNC unit test suite 2022-10-07 21:34:15 -07:00
BUILD.mk Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
closure.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
closure.h Reduce header complexity 2023-11-28 14:39:42 -08:00
counter_test.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
cv_mu_timeout_stress_test_.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
cv_test.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
cv_wait_example_test.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
dll_test.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
mu_starvation_test.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
mu_test.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
mu_wait_example_test.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
mu_wait_test.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
note_test.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
once_test.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
pingpong_test.c Introduce pthread_condattr_setclock() 2024-09-02 23:45:42 -07:00
smprintf.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
smprintf.h Add *NSYNC unit test suite 2022-10-07 21:34:15 -07:00
start_thread.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
testing.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
testing.h Reduce header complexity 2023-11-28 14:39:42 -08:00
time_extra.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
time_extra.h Clean up some sleep code 2022-10-08 03:00:48 -07:00
wait_test.c Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00