• Home
  • Raw
  • Download

Lines Matching refs:RwLock

64 pub struct RwLock<T: ?Sized> {  struct
78 inner: &'a RwLock<T>, argument
86 inner: &'a RwLock<T>,
99 inner: &'a RwLock<T>,
104 unsafe impl<T: ?Sized + Send> Send for RwLock<T> {} implementation
105 unsafe impl<T: ?Sized + Send + Sync> Sync for RwLock<T> {} implementation
107 impl<T> RwLock<T> { impl
124 pub const fn new(user_data: T) -> RwLock<T> { in new()
125 RwLock { in new()
136 let RwLock { data, .. } = self; in into_inner() localVariable
141 impl<T: ?Sized> RwLock<T> { impl
383 impl<T: ?Sized + fmt::Debug> fmt::Debug for RwLock<T> { implementation
394 impl<T: ?Sized + Default> Default for RwLock<T> { implementation
395 fn default() -> RwLock<T> { in default()
400 impl<T> From<T> for RwLock<T> { implementation
724 unsafe impl lock_api::RawRwLock for RwLock<()> { implementation
776 unsafe impl lock_api::RawRwLockUpgrade for RwLock<()> { implementation
817 unsafe impl lock_api::RawRwLockDowngrade for RwLock<()> { implementation
828 unsafe impl lock_api::RawRwLockUpgradeDowngrade for RwLock<()> { implementation
862 let l = RwLock::new(()); in smoke()
898 let arc = Arc::new(RwLock::new(0)); in test_rw_arc()
937 let arc = Arc::new(RwLock::new(1)); in test_rw_access_in_unwind()
941 i: Arc<RwLock<isize>>, in test_rw_access_in_unwind()
959 let rw: &RwLock<[i32]> = &RwLock::new([1, 2, 3]); in test_rwlock_unsized()
973 let lock = RwLock::new(0isize); in test_rwlock_try_write()
990 let m = RwLock::new(0); in test_rw_try_read()
997 let m = RwLock::new(NonCopy(10)); in test_into_inner()
1010 let m = RwLock::new(Foo(num_drops.clone())); in test_into_inner_drop()
1021 let m = RwLock::new(()); in test_force_read_decrement()
1039 let m = RwLock::new(()); in test_force_write_unlock()
1050 let m = RwLock::new(()); in test_upgrade_downgrade()