/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | MutexGuard.h | 27 class MutexGuard { 29 MutexGuard(const MutexGuard &) = delete; 30 void operator=(const MutexGuard &) = delete; 32 MutexGuard(sys::Mutex &m) : M(m) { M.lock(); } in MutexGuard() function 33 ~MutexGuard() { M.unlock(); } in ~MutexGuard()
|
/external/llvm/include/llvm/Support/ |
D | MutexGuard.h | 27 class MutexGuard { 29 MutexGuard(const MutexGuard &) = delete; 30 void operator=(const MutexGuard &) = delete; 32 MutexGuard(sys::Mutex &m) : M(m) { M.lock(); } in MutexGuard() function 33 ~MutexGuard() { M.unlock(); } in ~MutexGuard()
|
/external/rust/crates/spin/src/ |
D | mutex.rs | 103 pub struct MutexGuard<'a, T: 'a + ?Sized> { struct 172 pub fn lock(&self) -> MutexGuard<T> { in lock() 173 MutexGuard { in lock() 205 pub fn try_lock(&self) -> Option<MutexGuard<T>> { in try_lock() 208 .map(|guard| MutexGuard { inner: guard }) in try_lock() 248 impl<'a, T: ?Sized> MutexGuard<'a, T> { implementation 267 impl<'a, T: ?Sized + fmt::Debug> fmt::Debug for MutexGuard<'a, T> { implementation 273 impl<'a, T: ?Sized + fmt::Display> fmt::Display for MutexGuard<'a, T> { implementation 279 impl<'a, T: ?Sized> Deref for MutexGuard<'a, T> { implementation 286 impl<'a, T: ?Sized> DerefMut for MutexGuard<'a, T> { implementation
|
D | lib.rs | 72 pub use mutex::{Mutex, MutexGuard}; 83 pub type MutexGuard<'a, T> = lock_api::MutexGuard<'a, crate::Mutex<()>, T>; typedef
|
/external/rust/crates/tokio/src/loom/std/ |
D | parking_lot.rs | 10 pub(crate) use parking_lot::{MutexGuard, RwLockReadGuard, RwLockWriteGuard, WaitTimeoutResult}; 37 pub(crate) fn lock(&self) -> MutexGuard<'_, T> { in lock() 42 pub(crate) fn try_lock(&self) -> Option<MutexGuard<'_, T>> { in try_lock() 88 mut guard: MutexGuard<'a, T>, in wait() 89 ) -> LockResult<MutexGuard<'a, T>> { in wait() 97 mut guard: MutexGuard<'a, T>, in wait_timeout() 99 ) -> LockResult<(MutexGuard<'a, T>, WaitTimeoutResult)> { in wait_timeout()
|
D | mutex.rs | 1 use std::sync::{self, MutexGuard, TryLockError}; 16 pub(crate) fn lock(&self) -> MutexGuard<'_, T> { in lock() 24 pub(crate) fn try_lock(&self) -> Option<MutexGuard<'_, T>> { in try_lock()
|
D | mod.rs | 59 Condvar, Mutex, MutexGuard, RwLock, RwLockReadGuard, WaitTimeoutResult, 64 pub(crate) use std::sync::{Condvar, MutexGuard, RwLock, RwLockReadGuard, WaitTimeoutResult};
|
/external/rust/crates/tokio/src/sync/ |
D | mutex.rs | 140 pub struct MutexGuard<'a, T: ?Sized> { struct 168 unsafe impl<T> Sync for MutexGuard<'_, T> where T: ?Sized + Send + Sync {} implementation 207 check_send::<MutexGuard<'_, u32>>(); in bounds() 278 pub async fn lock(&self) -> MutexGuard<'_, T> { in lock() 280 MutexGuard { lock: self } in lock() 339 pub fn try_lock(&self) -> Result<MutexGuard<'_, T>, TryLockError> { in try_lock() 341 Ok(_) => Ok(MutexGuard { lock: self }), in try_lock() 454 impl<T: ?Sized> Drop for MutexGuard<'_, T> { implementation 460 impl<T: ?Sized> Deref for MutexGuard<'_, T> { implementation 467 impl<T: ?Sized> DerefMut for MutexGuard<'_, T> { implementation [all …]
|
/external/crosvm/sync/src/ |
D | condvar.rs | 6 use std::sync::{Condvar as StdCondvar, MutexGuard, WaitTimeoutResult}; 24 pub fn wait<'a, T>(&self, guard: MutexGuard<'a, T>) -> MutexGuard<'a, T> { in wait() 35 guard: MutexGuard<'a, T>, in wait_timeout() 37 ) -> (MutexGuard<'a, T>, WaitTimeoutResult) { in wait_timeout()
|
D | mutex.rs | 28 use std::sync::{Mutex as StdMutex, MutexGuard, TryLockError}; 60 pub fn lock(&self) -> MutexGuard<T> { in lock() 74 pub fn try_lock(&self) -> Result<MutexGuard<T>, WouldBlock> { in try_lock()
|
/external/rust/crates/futures-util/src/lock/ |
D | mutex.rs | 102 pub fn try_lock(&self) -> Option<MutexGuard<'_, T>> { in try_lock() 105 Some(MutexGuard { mutex: self }) in try_lock() 212 type Output = MutexGuard<'a, T>; 262 pub struct MutexGuard<'a, T: ?Sized> { struct 266 impl<'a, T: ?Sized> MutexGuard<'a, T> { implementation 296 impl<T: ?Sized + fmt::Debug> fmt::Debug for MutexGuard<'_, T> { implementation 305 impl<T: ?Sized> Drop for MutexGuard<'_, T> { implementation 311 impl<T: ?Sized> Deref for MutexGuard<'_, T> { implementation 318 impl<T: ?Sized> DerefMut for MutexGuard<'_, T> { implementation 404 unsafe impl<T: ?Sized + Send> Send for MutexGuard<'_, T> {} implementation [all …]
|
D | mod.rs | 10 pub use self::mutex::{MappedMutexGuard, Mutex, MutexLockFuture, MutexGuard};
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 96 MutexGuard locked(lock); in ~MCJIT() 108 MutexGuard locked(lock); in addModule() 117 MutexGuard locked(lock); in removeModule() 144 MutexGuard locked(lock); in setObjectCache() 149 MutexGuard locked(lock); in emitObject() 187 MutexGuard locked(lock); in generateCodeForModule() 236 MutexGuard locked(lock); in finalizeLoadedModules() 252 MutexGuard locked(lock); in finalizeObject() 267 MutexGuard locked(lock); in finalizeModule() 293 MutexGuard locked(lock); in findModuleForSymbol() [all …]
|
/external/rust/crates/lock_api/src/ |
D | mutex.rs | 189 unsafe fn guard(&self) -> MutexGuard<'_, R, T> { in guard() 190 MutexGuard { in guard() 206 pub fn lock(&self) -> MutexGuard<'_, R, T> { in lock() 220 pub fn try_lock(&self) -> Option<MutexGuard<'_, R, T>> { in try_lock() 316 pub fn try_lock_for(&self, timeout: R::Duration) -> Option<MutexGuard<'_, R, T>> { in try_lock_for() 331 pub fn try_lock_until(&self, timeout: R::Instant) -> Option<MutexGuard<'_, R, T>> { in try_lock_until() 410 pub struct MutexGuard<'a, R: RawMutex, T: ?Sized> { struct 415 unsafe impl<'a, R: RawMutex + Sync + 'a, T: ?Sized + Sync + 'a> Sync for MutexGuard<'a, R, T> {} argument 417 impl<'a, R: RawMutex + 'a, T: ?Sized + 'a> MutexGuard<'a, R, T> { implementation 491 impl<'a, R: RawMutexFair + 'a, T: ?Sized + 'a> MutexGuard<'a, R, T> { impl [all …]
|
/external/rust/crates/tokio/src/loom/ |
D | mocked.rs | 5 pub(crate) use loom::sync::MutexGuard; 18 pub(crate) fn lock(&self) -> MutexGuard<'_, T> { in lock() 23 pub(crate) fn try_lock(&self) -> Option<MutexGuard<'_, T>> { in try_lock()
|
/external/rust/crates/async-trait/tests/ui/ |
D | send-not-implemented.stderr | 12 = help: within `impl Future`, the trait `Send` is not implemented for `MutexGuard<'_, ()>` 17 | ------ has type `MutexGuard<'_, ()>` which is not `Send` 36 = help: within `impl Future`, the trait `Send` is not implemented for `MutexGuard<'_, ()>` 41 | ------ has type `MutexGuard<'_, ()>` which is not `Send`
|
/external/rust/crates/parking_lot/src/ |
D | condvar.rs | 8 use crate::mutex::MutexGuard; 259 pub fn wait<T: ?Sized>(&self, mutex_guard: &mut MutexGuard<'_, T>) { in wait() 260 self.wait_until_internal(unsafe { MutexGuard::mutex(mutex_guard).raw() }, None); in wait() 289 mutex_guard: &mut MutexGuard<'_, T>, in wait_until() 293 unsafe { MutexGuard::mutex(mutex_guard).raw() }, in wait_until() 393 mutex_guard: &mut MutexGuard<'_, T>, in wait_for() 397 self.wait_until_internal(unsafe { MutexGuard::mutex(mutex_guard).raw() }, deadline) in wait_for() 416 use crate::{Condvar, Mutex, MutexGuard}; 665 MutexGuard::bump(&mut g); in test_condvar_requeue() 705 use crate::{Condvar, Mutex, MutexGuard}; [all …]
|
D | lib.rs | 44 pub use self::mutex::{const_mutex, MappedMutexGuard, Mutex, MutexGuard};
|
/external/rust/crates/parking_lot/ |
D | CHANGELOG.md | 131 - All methods on `MutexGuard` (and other guard types) are no longer inherent 132 methods and must be called as `MutexGuard::method(self)`. This avoids 134 - `MutexGuard` (and other guard types) add the `unlocked` method which 137 - `MutexGuard` (and other guard types) add the `bump` method which gives a 141 - `MutexGuard` (and other guard types) add the `map` method which returns a 143 `MappedMutexGuard` type is identical to `MutexGuard` except that it does not
|
/external/llvm/lib/Support/ |
D | ManagedStatic.cpp | 42 MutexGuard Lock(*getManagedStaticMutex()); in RegisterManagedStatic() 84 MutexGuard Lock(*getManagedStaticMutex()); in llvm_shutdown()
|
D | ErrorHandling.cpp | 50 llvm::MutexGuard Lock(*ErrorHandlerMutex); in install_fatal_error_handler() 57 llvm::MutexGuard Lock(*ErrorHandlerMutex); in remove_fatal_error_handler() 80 llvm::MutexGuard Lock(*ErrorHandlerMutex); in report_fatal_error()
|
/external/llvm/lib/ExecutionEngine/ |
D | GDBRegistrationListener.cpp | 148 llvm::MutexGuard locked(*JITDebugLock); in ~GDBJITRegistrationListener() 175 llvm::MutexGuard locked(*JITDebugLock); in NotifyObjectEmitted() 195 llvm::MutexGuard locked(*JITDebugLock); in NotifyFreeingObject()
|
D | ExecutionEngine.cpp | 192 MutexGuard locked(lock); in getMangledName() 205 MutexGuard locked(lock); in addGlobalMapping() 210 MutexGuard locked(lock); in addGlobalMapping() 229 MutexGuard locked(lock); in clearAllGlobalMappings() 236 MutexGuard locked(lock); in clearGlobalMappingsFromModule() 244 MutexGuard locked(lock); in updateGlobalMapping() 249 MutexGuard locked(lock); in updateGlobalMapping() 276 MutexGuard locked(lock); in getAddressToGlobalIfAvailable() 287 MutexGuard locked(lock); in getPointerToGlobalIfAvailable() 294 MutexGuard locked(lock); in getPointerToGlobalIfAvailable() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | ErrorHandling.cpp | 50 llvm::MutexGuard Lock(*ErrorHandlerMutex); in install_fatal_error_handler() 57 llvm::MutexGuard Lock(*ErrorHandlerMutex); in remove_fatal_error_handler() 80 llvm::MutexGuard Lock(*ErrorHandlerMutex); in report_fatal_error()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXUtilities.cpp | 39 MutexGuard Guard(Lock); in clearAnnotationCache() 44 MutexGuard Guard(Lock); in cacheAnnotationFromMD() 70 MutexGuard Guard(Lock); in cacheAnnotationFromMD() 104 MutexGuard Guard(Lock); in findOneNVVMAnnotation() 118 MutexGuard Guard(Lock); in findAllNVVMAnnotation()
|