/external/rust/crates/tokio/src/sync/rwlock/ |
D | write_guard.rs | 17 pub struct RwLockWriteGuard<'a, T: ?Sized> { struct 24 impl<'a, T: ?Sized> RwLockWriteGuard<'a, T> { argument 149 RwLockWriteGuard::map(this, |me| me) in into_mapped() 190 let RwLockWriteGuard { s, data, .. } = self; in downgrade() localVariable 204 impl<T: ?Sized> ops::Deref for RwLockWriteGuard<'_, T> { implementation 212 impl<T: ?Sized> ops::DerefMut for RwLockWriteGuard<'_, T> { implementation 218 impl<'a, T: ?Sized> fmt::Debug for RwLockWriteGuard<'a, T> implementation 227 impl<'a, T: ?Sized> fmt::Display for RwLockWriteGuard<'a, T> implementation 236 impl<'a, T: ?Sized> Drop for RwLockWriteGuard<'a, T> { implementation
|
/external/rust/crates/spin/src/ |
D | rw_lock.rs | 85 pub struct RwLockWriteGuard<'a, T: 'a + ?Sized> { struct 265 fn try_write_internal(&self, strong: bool) -> Option<RwLockWriteGuard<T>> { in try_write_internal() 276 Some(RwLockWriteGuard { in try_write_internal() 304 pub fn write(&self) -> RwLockWriteGuard<T> { in write() 333 pub fn try_write(&self) -> Option<RwLockWriteGuard<T>> { in try_write() 439 fn try_upgrade_internal(self, strong: bool) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade_internal() 456 Ok(RwLockWriteGuard { in try_upgrade_internal() 474 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> { in upgrade() 497 pub fn try_upgrade(self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade() 560 impl<'rwlock, T: ?Sized> RwLockWriteGuard<'rwlock, T> { impl [all …]
|
D | lib.rs | 74 pub use rw_lock::{RwLock, RwLockReadGuard, RwLockWriteGuard, RwLockUpgradableGuard}; 92 pub type RwLockWriteGuard<'a, T> = lock_api::RwLockWriteGuard<'a, crate::RwLock<()>, T>; typedef
|
/external/rust/crates/tokio/src/sync/ |
D | rwlock.rs | 19 pub(crate) use write_guard::RwLockWriteGuard; 120 check_send::<RwLockWriteGuard<'_, u32>>(); in bounds() 121 check_sync::<RwLockWriteGuard<'_, u32>>(); in bounds() 122 check_unpin::<RwLockWriteGuard<'_, u32>>(); in bounds() 167 unsafe impl<T> Sync for RwLockWriteGuard<'_, T> where T: ?Sized + Send + Sync {} implementation 180 unsafe impl<T> Send for RwLockWriteGuard<'_, T> where T: ?Sized + Send + Sync {} implementation 517 pub async fn write(&self) -> RwLockWriteGuard<'_, T> { in write() 523 RwLockWriteGuard { in write() 597 pub fn try_write(&self) -> Result<RwLockWriteGuard<'_, T>, TryLockError> { in try_write() 604 Ok(RwLockWriteGuard { in try_write()
|
D | mod.rs | 458 pub use rwlock::write_guard::RwLockWriteGuard;
|
/external/rust/crates/lock_api/src/ |
D | rwlock.rs | 408 unsafe fn write_guard(&self) -> RwLockWriteGuard<'_, R, T> { in write_guard() 409 RwLockWriteGuard { in write_guard() 460 pub fn write(&self) -> RwLockWriteGuard<'_, R, T> { in write() 474 pub fn try_write(&self) -> Option<RwLockWriteGuard<'_, R, T>> { in try_write() 636 pub fn try_write_for(&self, timeout: R::Duration) -> Option<RwLockWriteGuard<'_, R, T>> { in try_write_for() 652 pub fn try_write_until(&self, timeout: R::Instant) -> Option<RwLockWriteGuard<'_, R, T>> { in try_write_until() 1047 pub struct RwLockWriteGuard<'a, R: RawRwLock, T: ?Sized> { struct 1052 impl<'a, R: RawRwLock + 'a, T: ?Sized + 'a> RwLockWriteGuard<'a, R, T> { argument 1126 impl<'a, R: RawRwLockDowngrade + 'a, T: ?Sized + 'a> RwLockWriteGuard<'a, R, T> { impl 1147 impl<'a, R: RawRwLockUpgradeDowngrade + 'a, T: ?Sized + 'a> RwLockWriteGuard<'a, R, T> { implementation [all …]
|
/external/rust/crates/crossbeam-utils/src/sync/ |
D | sharded_lock.rs | 9 use std::sync::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard}; 27 write_guard: UnsafeCell<Option<RwLockWriteGuard<'static, ()>>>, 348 let guard: RwLockWriteGuard<'static, ()> = mem::transmute(guard); in try_write() 423 let guard: RwLockWriteGuard<'_, ()> = guard; in write() 424 let guard: RwLockWriteGuard<'static, ()> = mem::transmute(guard); in write() 516 _marker: PhantomData<RwLockWriteGuard<'a, T>>,
|
/external/rust/crates/tokio/src/loom/std/ |
D | parking_lot.rs | 10 pub(crate) use parking_lot::{MutexGuard, RwLockReadGuard, RwLockWriteGuard, WaitTimeoutResult}; 64 pub(crate) fn write(&self) -> LockResult<RwLockWriteGuard<'_, T>> { in write()
|
/external/rust/crates/nix/test/ |
D | test.rs | 43 use std::sync::{Mutex, RwLock, RwLockWriteGuard}; 79 _g: RwLockWriteGuard<'a, ()>
|
/external/rust/crates/parking_lot/src/ |
D | rwlock.rs | 104 pub type RwLockWriteGuard<'a, T> = lock_api::RwLockWriteGuard<'a, RawRwLock, T>; typedef 130 use crate::{RwLock, RwLockUpgradableReadGuard, RwLockWriteGuard}; 527 let reader = RwLockWriteGuard::downgrade(writer); in test_rwlock_downgrade()
|
D | lib.rs | 55 RwLockUpgradableReadGuard, RwLockWriteGuard,
|
/external/rust/crates/tokio/ |
D | CHANGELOG.md | 89 - sync: add back `RwLockWriteGuard::map` and `RwLockWriteGuard::try_map` ([#3348]) 222 This release fixes a soundness hole caused by the combination of `RwLockWriteGuard::map` 223 and `RwLockWriteGuard::downgrade` by removing the `map` function. This is a breaking 234 - sync: remove `RwLockWriteGuard::map` and `RwLockWriteGuard::try_map` ([#3345]) 412 - sync: `RwLockWriteGuard::downgrade()` bug ([#2957]).
|