Home
last modified time | relevance | path

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

/external/rust/crates/futures-channel/src/mpsc/
Dmod.rs305 const OPEN_MASK: usize = usize::max_value() - (usize::max_value() >> 1); constant
309 const INIT_STATE: usize = OPEN_MASK;
312 const MAX_CAPACITY: usize = !(OPEN_MASK);
1299 self.state.fetch_and(!OPEN_MASK, SeqCst); in set_closed()
1317 self.state.fetch_and(!OPEN_MASK, SeqCst); in set_closed()
1348 State { is_open: num & OPEN_MASK == OPEN_MASK, num_messages: num & MAX_CAPACITY } in decode_state()
1355 num |= OPEN_MASK; in encode_state()