Home
last modified time | relevance | path

Searched refs:RwLockWriteGuard (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/tokio/src/sync/rwlock/
Dwrite_guard.rs17 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/
Drw_lock.rs85 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 …]
Dlib.rs74 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/
Drwlock.rs19 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()
Dmod.rs458 pub use rwlock::write_guard::RwLockWriteGuard;
/external/rust/crates/lock_api/src/
Drwlock.rs408 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/
Dsharded_lock.rs9 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/
Dparking_lot.rs10 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/
Dtest.rs43 use std::sync::{Mutex, RwLock, RwLockWriteGuard};
79 _g: RwLockWriteGuard<'a, ()>
/external/rust/crates/parking_lot/src/
Drwlock.rs104 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()
Dlib.rs55 RwLockUpgradableReadGuard, RwLockWriteGuard,
/external/rust/crates/tokio/
DCHANGELOG.md89 - 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]).