Lines Matching refs:Arc
3 use std::sync::{Arc, TryLockError};
26 let r = Arc::new(ShardedLock::new(())); in frob()
52 let arc = Arc::new(ShardedLock::new(1)); in arc_poison_wr()
66 let arc = Arc::new(ShardedLock::new(1)); in arc_poison_ww()
82 let arc = Arc::new(ShardedLock::new(1)); in arc_no_poison_rr()
96 let arc = Arc::new(ShardedLock::new(1)); in arc_no_poison_sl()
109 let arc = Arc::new(ShardedLock::new(0)); in arc()
149 let arc = Arc::new(ShardedLock::new(1)); in arc_access_in_unwind()
153 i: Arc<ShardedLock<isize>>, in arc_access_in_unwind()
204 struct Foo(Arc<AtomicUsize>); in test_into_inner_drop()
210 let num_drops = Arc::new(AtomicUsize::new(0)); in test_into_inner_drop()
224 let m = Arc::new(ShardedLock::new(NonCopy(10))); in test_into_inner_poison()
233 match Arc::try_unwrap(m).unwrap().into_inner() { in test_into_inner_poison()
250 let m = Arc::new(ShardedLock::new(NonCopy(10))); in test_get_mut_poison()
259 match Arc::try_unwrap(m).unwrap().get_mut() { in test_get_mut_poison()