Home
last modified time | relevance | path

Searched refs:STATE_MASK (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/once_cell/src/
Dimp_std.rs45 const STATE_MASK: usize = 0x3; constant
178 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()
/external/rust/crates/tokio/src/sync/
Dnotify.rs167 const STATE_MASK: usize = (1 << NOTIFY_WAITERS_SHIFT) - 1; constant
168 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()
/external/rust/crates/tokio/src/runtime/task/
Dstate.rs41 const STATE_MASK: usize = LIFECYCLE_MASK | NOTIFIED | JOIN_INTEREST | JOIN_WAKER | CANCELLED; constant
44 const REF_COUNT_MASK: usize = !STATE_MASK;
/external/elfutils/lib/
Ddynamicsizehash_concurrent.c170 #define STATE_MASK (STATE_INCREMENT - 1) macro
171 #define GET_STATE(A) ((A) & STATE_MASK)