![ad](/assets/img/avatar_default.png)
thread it is trying to awake. The thread could exit the condvar and then reinsert itself at the head of the list with a new waiter behind it. It's likely possible to fix this in a way that's wait-free but for now just fix the bug.
$NetBSD: README,v 1.7 2017/02/08 03:44:41 kamil Exp $ Due to limitations in the current pthread implementation, makecontext(3) and sigaltstack(2) should not be used in programs which link against libpthread (whether threads are used or not). This has been noted in the makecontext(3), sigaltstack(2), and pthread(3) man pages.