FreeBSD/sys/compat/cloudabi/cloudabi_futex.c
/* Wakes up all waiters in a queue. */
Wakes up all waiters in a queue.
Wakes up all waiters in a queue .
static void
futex_queue_wake_up_all(struct futex_queue *fq)
{
	struct futex_waiter *fw;
	STAILQ_FOREACH(fw, &fq->fq_list, fw_next) {
		fw->fw_locked = true;
		fw->fw_queue = NULL;
		cv_signal(&fw->fw_wait);
	}
	STAILQ_INIT(&fq->fq_list);
	fq->fq_count = 0;
}
static void futex_queue_wake_up_all ( struct futex_queue * fq ) { struct futex_waiter * fw ; STAILQ_FOREACH ( fw , & fq -> fq_list , fw_next ) { fw -> fw_locked = true ; fw -> fw_queue = NULL ; cv_signal ( & fw -> fw_wait ) ; } STAILQ_INIT ( & fq -> fq_list ) ; fq -> fq_count = 0 ; }
Wakes up all waiters in a queue.
Wakes up all waiters in a queue .