• Home
  • Raw
  • Download

Lines Matching refs:RwLock

89 pub type RwLock<T> = lock_api::RwLock<RawRwLock, T>;  typedef
94 pub const fn const_rwlock<T>(val: T) -> RwLock<T> { in const_rwlock()
95 RwLock::const_new(<RawRwLock as lock_api::RawRwLock>::INIT, val) in const_rwlock()
130 use crate::{RwLock, RwLockUpgradableReadGuard, RwLockWriteGuard};
146 let l = RwLock::new(()); in smoke()
160 let r = Arc::new(RwLock::new(())); in frob()
184 let arc = Arc::new(RwLock::new(1)); in test_rw_arc_no_poison_wr()
197 let arc = Arc::new(RwLock::new(1)); in test_rw_arc_no_poison_ww()
210 let arc = Arc::new(RwLock::new(1)); in test_rw_arc_no_poison_rr()
223 let arc = Arc::new(RwLock::new(1)); in test_rw_arc_no_poison_rw()
236 let arc = Arc::new(RwLock::new(0)); in test_ruw_arc()
292 let arc = Arc::new(RwLock::new(0)); in test_rw_arc()
330 let arc = Arc::new(RwLock::new(1)); in test_rw_arc_access_in_unwind()
334 i: Arc<RwLock<isize>>, in test_rw_arc_access_in_unwind()
352 let rw: &RwLock<[i32]> = &RwLock::new([1, 2, 3]); in test_rwlock_unsized()
364 let lock = RwLock::new(0isize); in test_rwlock_try_read()
402 let lock = RwLock::new(0isize); in test_rwlock_try_write()
440 let lock = RwLock::new(0isize); in test_rwlock_try_upgrade()
478 let m = RwLock::new(NonCopy(10)); in test_into_inner()
491 let m = RwLock::new(Foo(num_drops.clone())); in test_into_inner_drop()
502 let mut m = RwLock::new(NonCopy(10)); in test_get_mut()
511 let rwlock = RwLock::new(()); in test_rwlockguard_sync()
518 let x = Arc::new(RwLock::new(0)); in test_rwlock_downgrade()
540 let arc = Arc::new(RwLock::new(1)); in test_rwlock_recursive()
567 let x = RwLock::new(vec![0u8, 10]); in test_rwlock_debug()
576 let rwlock = RwLock::new(Arc::new(1)); in test_clone()
586 let mutex = RwLock::new(contents.clone()); in test_serde()
589 let deserialized: RwLock<Vec<u8>> = deserialize(&serialized).unwrap(); in test_serde()
597 struct Bar(RwLock<()>); in test_issue_203()
606 static B: Bar = Bar(RwLock::new(())); in test_issue_203()
612 let a = RwLock::new(()); in test_issue_203()