Lines Matching refs:alive
12 alive: AtomicBool, field
19 alive: AtomicBool::new(true), in new()
54 flag.alive.load(Ordering::Relaxed) && in new_with_timeout()
80 flag.alive.store(false, Ordering::Relaxed); in cancel()
94 pub fn alive(&self) -> bool { in alive() method
97 flag.alive.load(Ordering::Relaxed) in alive()
115 while rloop.alive() { /* wait */ } in test_empty()
122 RunLoop::new(|alive| assert!(!alive())).unwrap().cancel(); in test_cancel_early()
131 let rloop = RunLoop::new(move |alive| { in test_cancel_endless_loop()
133 while alive() { /* loop */ } in test_cancel_endless_loop()
137 assert!(rloop.alive()); in test_cancel_endless_loop()
139 assert!(!rloop.alive()); in test_cancel_endless_loop()
145 let rloop = RunLoop::new_with_timeout(|alive| while alive() {}, 1).unwrap(); in test_timeout()
147 while rloop.alive() { /* wait */ } in test_timeout()
148 assert!(!rloop.alive()); in test_timeout()
157 let rloop = RunLoop::new(move |alive| while alive() { in test_channel()
164 assert!(rloop.alive()); in test_channel()
166 assert!(!rloop.alive()); in test_channel()