Searched refs:STATE_MASK (Results 1 – 4 of 4) sorted by relevance
45 const STATE_MASK: usize = 0x3; constant178 assert!(state_and_queue & STATE_MASK == RUNNING); in initialize_inner()189 if current_state & STATE_MASK != RUNNING { in wait()196 next: (current_state & !STATE_MASK) as *const Waiter, in wait()224 assert_eq!(state_and_queue & STATE_MASK, RUNNING); in drop()227 let mut queue = (state_and_queue & !STATE_MASK) as *const Waiter; in drop()
167 const STATE_MASK: usize = (1 << NOTIFY_WAITERS_SHIFT) - 1; constant168 const NOTIFY_WAITERS_CALLS_MASK: usize = !STATE_MASK;180 (data & NOTIFY_WAITERS_CALLS_MASK) | (state & STATE_MASK) in set_state()184 data & STATE_MASK in get_state()
41 const STATE_MASK: usize = LIFECYCLE_MASK | NOTIFIED | JOIN_INTEREST | JOIN_WAKER | CANCELLED; constant44 const REF_COUNT_MASK: usize = !STATE_MASK;
170 #define STATE_MASK (STATE_INCREMENT - 1) macro171 #define GET_STATE(A) ((A) & STATE_MASK)