Home
last modified time | relevance | path

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

/external/rust/crates/tokio/tests/
Dsync_barrier.rs24 assert!(wr.is_leader()); in zero_does_not_block()
29 assert!(wr.is_leader()); in zero_does_not_block()
40 assert!(wr.is_leader()); in single()
45 assert!(wr.is_leader()); in single()
50 assert!(wr.is_leader()); in single()
65 assert!(wr1.is_leader() || wr2.is_leader()); in tango()
66 assert!(!(wr1.is_leader() && wr2.is_leader())); in tango()
86 let mut found_leader = assert_ready!(w.poll()).is_leader(); in lots()
89 if wr.is_leader() { in lots()
/external/rust/crates/spin/src/
Dbarrier.rs179 pub fn is_leader(&self) -> bool { self.0 } in is_leader() method
199 tx.send(c.wait().is_leader()).unwrap(); in use_barrier()
210 let mut leader_found = barrier.wait().is_leader(); in use_barrier()
/external/rust/crates/tokio/src/sync/
Dbarrier.rs141 pub fn is_leader(&self) -> bool { in is_leader() method