Files
llvm-tms34010/libc/src/threads
Alexey Samsonov 2204247150 [libc] C11 threads: Add cnd_timedwait and mtx_trylock. (#195966)
Use recently added support for timed_wait in CndVar and try_lock in
Mutex to implement the C11 functions `cnd_timedwait` and `mtx_trylock`
(counterparts of `pthread_cond_timedwait` and `pthread_mutex_trylock`,
respectively).

Fixes a minor edge case in `ensure_monotonicity` conversion where the
converted timeout could fall before epoch - clamp it to be 0 / epoch in
that case.

Assisted by: Gemini
2026-05-11 10:50:33 -07:00
..
…
…