Lines Matching full:futex
356 if (futex(&state_, FUTEX_WAIT, 1, NULL, NULL, 0) != 0) {
360 PLOG(FATAL) << "futex wait failed for " << name_;
443 futex(&state_, FUTEX_WAKE, 1, NULL, NULL, 0);
559 if (futex(&state_, FUTEX_WAIT, cur_state, NULL, NULL, 0) != 0) {
563 PLOG(FATAL) << "futex wait failed for " << name_;
594 futex(&state_, FUTEX_WAKE, -1, NULL, NULL, 0);
628 if (futex(&state_, FUTEX_WAIT, cur_state, &rel_ts, NULL, 0) != 0) {
636 PLOG(FATAL) << "timed futex wait failed for " << name_;
802 done = futex(&sequence_, FUTEX_CMP_REQUEUE, 0,
807 PLOG(FATAL) << "futex cmp requeue failed for " << name_;
823 // Futex wake 1 waiter who will then come and in contend on mutex. It'd be nice to requeue them
825 int num_woken = futex(&sequence_, FUTEX_WAKE, 1, NULL, NULL, 0);
850 if (futex(&sequence_, FUTEX_WAIT, cur_sequence, NULL, NULL, 0) != 0) {
851 // Futex failed, check it is an expected error.
855 PLOG(FATAL) << "futex wait failed for " << name_;
885 if (futex(&sequence_, FUTEX_WAIT, cur_sequence, &rel_ts, NULL, 0) != 0) {
891 PLOG(FATAL) << "timed futex wait failed for " << name_;