pthread_cond_wait spurious wakeup

From: Slawa Olhovchenkov <slw_at_zxy.spb.ru>
Date: Fri, 24 Jul 2026 23:02:35 UTC
Is pthread_cond_wait susceptible to spurious wakeup in FreeBSD? The
pthread_cond_wait man page doesn't say anything about waiting thread
can unblocking in cases like EINTR. But in
lib/libthr/thread/thr_cond.c:232-249,
I seem to see a successful return from pthread_cond_wait on EINTR
case. So, we don't have a spurious wakeup issue, or does the man page
need to be corrected and an additional predicate should be used in
conjunction with pthread_cond_wait?