pthread_cond_wait spurious wakeup

Slawa Olhovchenkov <[email protected]> Sat, 25 Jul 2026 02:02:35 +0300
Newsgroups gmane.os.freebsd.devel.hackers
Message-ID <[email protected]>
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?