Searched refs:TryLockError (Results 1 – 8 of 8) sorted by relevance
/external/rust/crates/crossbeam-utils/src/sync/ |
D | sharded_lock.rs | 8 use std::sync::{LockResult, PoisonError, TryLockError, TryLockResult}; 236 Err(TryLockError::Poisoned(err)) => { in try_read() 242 Err(TryLockError::Poisoned(PoisonError::new(guard))) in try_read() 244 Err(TryLockError::WouldBlock) => Err(TryLockError::WouldBlock), in try_read() 336 Err(TryLockError::Poisoned(err)) => { in try_write() 340 Err(TryLockError::WouldBlock) => { in try_write() 363 Err(TryLockError::WouldBlock) in try_write() 369 Err(TryLockError::Poisoned(PoisonError::new(guard))) in try_write() 451 Err(TryLockError::Poisoned(err)) => f in fmt() 455 Err(TryLockError::WouldBlock) => { in fmt()
|
/external/crosvm/sync/src/ |
D | mutex.rs | 28 use std::sync::{Mutex as StdMutex, MutexGuard, TryLockError}; 77 Err(TryLockError::Poisoned(_)) => panic!("mutex is poisoned"), in try_lock() 78 Err(TryLockError::WouldBlock) => Err(WouldBlock), in try_lock() 117 Display::fmt(&TryLockError::WouldBlock::<()>, formatter) in fmt()
|
/external/rust/crates/tokio/src/sync/ |
D | rwlock.rs | 2 use crate::sync::mutex::TryLockError; 429 pub fn try_read(&self) -> Result<RwLockReadGuard<'_, T>, TryLockError> { in try_read() argument 432 Err(TryAcquireError::NoPermits) => return Err(TryLockError(())), in try_read() 481 pub fn try_read_owned(self: Arc<Self>) -> Result<OwnedRwLockReadGuard<T>, TryLockError> { in try_read_owned() argument 484 Err(TryAcquireError::NoPermits) => return Err(TryLockError(())), in try_read_owned() 597 pub fn try_write(&self) -> Result<RwLockWriteGuard<'_, T>, TryLockError> { in try_write() argument 600 Err(TryAcquireError::NoPermits) => return Err(TryLockError(())), in try_write() 642 pub fn try_write_owned(self: Arc<Self>) -> Result<OwnedRwLockWriteGuard<T>, TryLockError> { in try_write_owned() argument 645 Err(TryAcquireError::NoPermits) => return Err(TryLockError(())), in try_write_owned()
|
D | mutex.rs | 186 pub struct TryLockError(pub(super) ()); struct 188 impl fmt::Display for TryLockError { implementation 194 impl Error for TryLockError {} implementation 339 pub fn try_lock(&self) -> Result<MutexGuard<'_, T>, TryLockError> { in try_lock() argument 342 Err(_) => Err(TryLockError(())), in try_lock() 394 pub fn try_lock_owned(self: Arc<Self>) -> Result<OwnedMutexGuard<T>, TryLockError> { in try_lock_owned() argument 397 Err(_) => Err(TryLockError(())), in try_lock_owned()
|
D | mod.rs | 439 pub use mutex::{Mutex, MutexGuard, TryLockError, OwnedMutexGuard};
|
/external/rust/crates/tokio/src/loom/std/ |
D | mutex.rs | 1 use std::sync::{self, MutexGuard, TryLockError}; 27 Err(TryLockError::Poisoned(p_err)) => Some(p_err.into_inner()), in try_lock() 28 Err(TryLockError::WouldBlock) => None, in try_lock()
|
/external/rust/crates/rayon/src/iter/ |
D | par_bridge.rs | 4 use std::sync::{Mutex, TryLockError}; 185 Err(TryLockError::WouldBlock) => { in fold_with() 189 Err(TryLockError::Poisoned(_)) => { in fold_with()
|
/external/rust/crates/crossbeam-utils/tests/ |
D | sharded_lock.rs | 3 use std::sync::{Arc, TryLockError}; 188 Err(TryLockError::WouldBlock) => (), in try_write()
|