cnd_timedwait waits on a condition variable with a mutex and an absolute time limit. While waiting, the thread is paused; the mutex is associated with the condition variable until the waiter reacquires it. section 18.5
One-second bounded wait
A helper obtains the current UTC time, adds one second to now.tv_sec, and passes that absolute deadline to cnd_timedwait(cnd, mtx, &now). The caller therefore pauses until notification or timeout.
Use the wait as part of a guarded condition loop:
- After return, check the predicate again: notification does not guarantee that the condition expression changed, and timeout can also return. section 18.5

