• Home
  • Raw
  • Download

Lines Matching refs:Condvar

90 pub struct Condvar {  struct
94 impl Condvar { impl
98 pub const fn new() -> Condvar { in new()
99 Condvar { in new()
401 impl Default for Condvar { implementation
403 fn default() -> Condvar { in default()
404 Condvar::new() in default()
408 impl fmt::Debug for Condvar { implementation
416 use crate::{Condvar, Mutex, MutexGuard};
425 let c = Condvar::new(); in smoke()
434 let c = Arc::new(Condvar::new()); in notify_one()
449 let data = Arc::new((Mutex::new(0), Condvar::new())); in notify_all()
485 let c = Arc::new(Condvar::new()); in notify_one_return_true()
499 let c = Arc::new(Condvar::new()); in notify_one_return_false()
511 let data = Arc::new((Mutex::new(0), Condvar::new())); in notify_all_return()
549 let c = Arc::new(Condvar::new()); in wait_for()
577 let c = Arc::new(Condvar::new()); in wait_until()
601 let c = Arc::new(Condvar::new()); in two_mutexes()
605 struct PanicGuard<'a>(&'a Condvar); in two_mutexes()
631 let c = Arc::new(Condvar::new()); in two_mutexes_disjoint()
647 let c = Condvar::new(); in test_debug_condvar()
655 let c = Arc::new(Condvar::new()); in test_condvar_requeue()
677 let locks = Arc::new((Mutex::new(()), Condvar::new())); in test_issue_129()
705 use crate::{Condvar, Mutex, MutexGuard};
735 condition: &Condvar, in wait() argument
750 fn notify(style: NotifyStyle, condition: &Condvar, should_notify: bool) { in notify() argument
773 let empty_condition = Arc::new(Condvar::new()); in run_queue_test()
774 let full_condition = Arc::new(Condvar::new()); in run_queue_test()
833 empty_condition: Arc<Condvar>, in consumer_thread() argument
834 full_condition: Arc<Condvar>, in consumer_thread() argument
868 empty_condition: Arc<Condvar>, in producer_thread() argument
869 full_condition: Arc<Condvar>, in producer_thread() argument