Lines Matching refs:Arc
419 use std::sync::Arc;
432 let m = Arc::new(Mutex::new(())); in notify_one()
434 let c = Arc::new(Condvar::new()); in notify_one()
449 let data = Arc::new((Mutex::new(0), Condvar::new())); in notify_all()
483 let m = Arc::new(Mutex::new(())); in notify_one_return_true()
485 let c = Arc::new(Condvar::new()); in notify_one_return_true()
498 let m = Arc::new(Mutex::new(())); in notify_one_return_false()
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()
547 let m = Arc::new(Mutex::new(())); in wait_for()
549 let c = Arc::new(Condvar::new()); in wait_for()
575 let m = Arc::new(Mutex::new(())); in wait_until()
577 let c = Arc::new(Condvar::new()); in wait_until()
598 let m = Arc::new(Mutex::new(())); in two_mutexes()
600 let m3 = Arc::new(Mutex::new(())); in two_mutexes()
601 let c = Arc::new(Condvar::new()); in two_mutexes()
628 let m = Arc::new(Mutex::new(())); in two_mutexes_disjoint()
630 let m3 = Arc::new(Mutex::new(())); in two_mutexes_disjoint()
631 let c = Arc::new(Condvar::new()); in two_mutexes_disjoint()
653 let m = Arc::new(Mutex::new(())); in test_condvar_requeue()
655 let c = Arc::new(Condvar::new()); in test_condvar_requeue()
677 let locks = Arc::new((Mutex::new(()), Condvar::new())); in test_issue_129()
706 use std::{collections::VecDeque, sync::Arc, thread, time::Duration};
772 let input_queue = Arc::new(Mutex::new(Queue::new())); in run_queue_test()
773 let empty_condition = Arc::new(Condvar::new()); in run_queue_test()
774 let full_condition = Arc::new(Condvar::new()); in run_queue_test()
776 let output_vec = Arc::new(Mutex::new(vec![])); in run_queue_test()
832 input_queue: Arc<Mutex<Queue>>, in consumer_thread()
833 empty_condition: Arc<Condvar>, in consumer_thread()
834 full_condition: Arc<Condvar>, in consumer_thread()
837 output_queue: Arc<Mutex<Vec<usize>>>, in consumer_thread()
867 queue: Arc<Mutex<Queue>>, in producer_thread()
868 empty_condition: Arc<Condvar>, in producer_thread()
869 full_condition: Arc<Condvar>, in producer_thread()