Searched refs:read_guard (Results 1 – 9 of 9) sorted by relevance
366 let read_guard = lock.read(); in test_rwlock_try_read() localVariable374 drop(read_guard); in test_rwlock_try_read()404 let read_guard = lock.read(); in test_rwlock_try_write() localVariable412 drop(read_guard); in test_rwlock_try_write()442 let read_guard = lock.read(); in test_rwlock_try_upgrade() localVariable450 drop(read_guard); in test_rwlock_try_upgrade()
397 unsafe fn read_guard(&self) -> RwLockReadGuard<'_, R, T> { in read_guard() method431 unsafe { self.read_guard() } in read()445 Some(unsafe { self.read_guard() }) in try_read()607 Some(unsafe { self.read_guard() }) in try_read_for()623 Some(unsafe { self.read_guard() }) in try_read_until()682 unsafe { self.read_guard() } in read_recursive()699 Some(unsafe { self.read_guard() }) in try_read_recursive()724 Some(unsafe { self.read_guard() }) in try_read_recursive_for()743 Some(unsafe { self.read_guard() }) in try_read_recursive_until()
457 pub use rwlock::read_guard::RwLockReadGuard;
12 pub(crate) mod read_guard; module18 pub(crate) use read_guard::RwLockReadGuard;
242 let read_guard = lock.read().await; in try_write() localVariable244 drop(read_guard); in try_write()
184 let read_guard = lock.read().unwrap(); in try_write() localVariable193 drop(read_guard); in try_write()
2 use crate::sync::rwlock::read_guard::RwLockReadGuard;
345 static __isl_give isl_schedule_tree *read_guard(isl_stream *s) in read_guard() function696 tree = read_guard(s); in isl_stream_read_schedule_tree()
974 let read_guard = lock.read(); in test_rwlock_try_write() localVariable985 drop(read_guard); in test_rwlock_try_write()