Searched refs:INCOMPLETE (Results 1 - 2 of 2) sorted by relevance
/third_party/rust/crates/once_cell/src/ |
H A D | imp_pl.rs | 12 const INCOMPLETE: u8 = 0x0; consts 29 OnceCell { state: AtomicU8::new(INCOMPLETE), value: UnsafeCell::new(None) } 142 state.compare_exchange_weak(INCOMPLETE, RUNNING, Ordering::Acquire, Ordering::Acquire); in initialize_inner() 145 let mut guard = Guard { state, new_state: INCOMPLETE }; in initialize_inner() 163 Err(INCOMPLETE) => (), in initialize_inner()
|
H A D | imp_std.rs | 19 // * The current state of the cell (`INCOMPLETE`, `RUNNING`, `COMPLETE`) 22 // State is encoded in two low bits. Only `INCOMPLETE` and `RUNNING` states 68 /// writes value only once because we never get to INCOMPLETE state after a 135 const INCOMPLETE: usize = 0x0; consts 138 const INCOMPLETE_PTR: *mut Waiter = INCOMPLETE as *mut Waiter; 194 (INCOMPLETE, Some(init)) => { in initialize_or_wait() 211 (INCOMPLETE, None) | (RUNNING, _) => { in initialize_or_wait()
|
Completed in 2 milliseconds