Home
last modified time | relevance | path

Searched refs:RwLockReadGuard (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/tokio/src/sync/rwlock/
Dread_guard.rs15 pub struct RwLockReadGuard<'a, T: ?Sized> { struct
21 impl<'a, T: ?Sized> RwLockReadGuard<'a, T> { argument
56 pub fn map<F, U: ?Sized>(this: Self, f: F) -> RwLockReadGuard<'a, U> in map()
64 RwLockReadGuard { in map()
107 pub fn try_map<F, U: ?Sized>(this: Self, f: F) -> Result<RwLockReadGuard<'a, U>, Self> in try_map()
118 Ok(RwLockReadGuard { in try_map()
126 impl<T: ?Sized> ops::Deref for RwLockReadGuard<'_, T> { implementation
134 impl<'a, T: ?Sized> fmt::Debug for RwLockReadGuard<'a, T> implementation
143 impl<'a, T: ?Sized> fmt::Display for RwLockReadGuard<'a, T> implementation
152 impl<'a, T: ?Sized> Drop for RwLockReadGuard<'a, T> { implementation
Dwrite_guard.rs2 use crate::sync::rwlock::read_guard::RwLockReadGuard;
189 pub fn downgrade(self) -> RwLockReadGuard<'a, T> { in downgrade()
196 RwLockReadGuard { in downgrade()
/external/rust/crates/tokio/src/sync/
Drwlock.rs18 pub(crate) use read_guard::RwLockReadGuard;
112 check_send::<RwLockReadGuard<'_, u32>>(); in bounds()
113 check_sync::<RwLockReadGuard<'_, u32>>(); in bounds()
114 check_unpin::<RwLockReadGuard<'_, u32>>(); in bounds()
151 unsafe impl<T> Send for RwLockReadGuard<'_, T> where T: ?Sized + Sync {} implementation
152 unsafe impl<T> Sync for RwLockReadGuard<'_, T> where T: ?Sized + Send + Sync {} implementation
326 pub async fn read(&self) -> RwLockReadGuard<'_, T> { in read()
332 RwLockReadGuard { in read()
429 pub fn try_read(&self) -> Result<RwLockReadGuard<'_, T>, TryLockError> { in try_read()
436 Ok(RwLockReadGuard { in try_read()
Dmod.rs457 pub use rwlock::read_guard::RwLockReadGuard;
Dwatch.rs60 use crate::loom::sync::{Arc, RwLock, RwLockReadGuard};
95 inner: RwLockReadGuard<'a, T>,
Dbroadcast.rs114 use crate::loom::sync::{Arc, Mutex, RwLock, RwLockReadGuard};
365 slot: RwLockReadGuard<'a, Slot<T>>,
/external/rust/crates/spin/src/
Drw_lock.rs77 pub struct RwLockReadGuard<'a, T: 'a + ?Sized> { struct
164 pub fn read(&self) -> RwLockReadGuard<T> { in read()
196 pub fn try_read(&self) -> Option<RwLockReadGuard<T>> { in try_read()
206 Some(RwLockReadGuard { in try_read()
406 impl<'rwlock, T: ?Sized> RwLockReadGuard<'rwlock, T> { impl
425 impl<'rwlock, T: ?Sized + fmt::Debug> fmt::Debug for RwLockReadGuard<'rwlock, T> { implementation
431 impl<'rwlock, T: ?Sized + fmt::Display> fmt::Display for RwLockReadGuard<'rwlock, T> { implementation
515 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade()
524 RwLockReadGuard { in downgrade()
574 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade()
[all …]
Dlib.rs74 pub use rw_lock::{RwLock, RwLockReadGuard, RwLockWriteGuard, RwLockUpgradableGuard};
89 pub type RwLockReadGuard<'a, T> = lock_api::RwLockReadGuard<'a, crate::RwLock<()>, T>; typedef
/external/rust/crates/lock_api/src/
Drwlock.rs397 unsafe fn read_guard(&self) -> RwLockReadGuard<'_, R, T> { in read_guard()
398 RwLockReadGuard { in read_guard()
428 pub fn read(&self) -> RwLockReadGuard<'_, R, T> { in read()
442 pub fn try_read(&self) -> Option<RwLockReadGuard<'_, R, T>> { in try_read()
604 pub fn try_read_for(&self, timeout: R::Duration) -> Option<RwLockReadGuard<'_, R, T>> { in try_read_for()
620 pub fn try_read_until(&self, timeout: R::Instant) -> Option<RwLockReadGuard<'_, R, T>> { in try_read_until()
679 pub fn read_recursive(&self) -> RwLockReadGuard<'_, R, T> { in read_recursive()
696 pub fn try_read_recursive(&self) -> Option<RwLockReadGuard<'_, R, T>> { in try_read_recursive()
721 ) -> Option<RwLockReadGuard<'_, R, T>> { in try_read_recursive_for()
740 ) -> Option<RwLockReadGuard<'_, R, T>> { in try_read_recursive_until()
[all …]
/external/rust/crates/tokio/src/loom/std/
Dparking_lot.rs10 pub(crate) use parking_lot::{MutexGuard, RwLockReadGuard, RwLockWriteGuard, WaitTimeoutResult};
60 pub(crate) fn read(&self) -> LockResult<RwLockReadGuard<'_, T>> { in read()
Dmod.rs59 Condvar, Mutex, MutexGuard, RwLock, RwLockReadGuard, WaitTimeoutResult,
64 pub(crate) use std::sync::{Condvar, MutexGuard, RwLock, RwLockReadGuard, WaitTimeoutResult};
/external/rust/crates/crossbeam-utils/src/sync/
Dsharded_lock.rs9 use std::sync::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard};
485 _guard: RwLockReadGuard<'a, ()>,
486 _marker: PhantomData<RwLockReadGuard<'a, T>>,
/external/rust/crates/parking_lot/src/
Dlib.rs54 const_rwlock, MappedRwLockReadGuard, MappedRwLockWriteGuard, RwLock, RwLockReadGuard,
Drwlock.rs100 pub type RwLockReadGuard<'a, T> = lock_api::RwLockReadGuard<'a, RawRwLock, T>; typedef