Home
last modified time | relevance | path

Searched refs:lock_owned (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/tokio/tests/
Dsync_mutex_owned.rs17 let mut t = spawn(l.clone().lock_owned()); in straight_execution()
23 let mut t = spawn(l.clone().lock_owned()); in straight_execution()
29 let mut t = spawn(l.lock_owned()); in straight_execution()
38 let mut t1 = spawn(l.clone().lock_owned()); in readiness()
39 let mut t2 = spawn(l.lock_owned()); in readiness()
63 m2.lock_owned().await; in aborted_future_1()
72 m1.lock_owned().await; in aborted_future_1()
85 let _lock = m1.clone().lock_owned().await; in aborted_future_2()
90 m2.lock_owned().await; in aborted_future_2()
98 m1.lock_owned().await; in aborted_future_2()
[all …]
Dasync_send_sync.rs239 async_assert_fn!(tokio::sync::Mutex<u8>::lock_owned(_): Send & Sync);
240 async_assert_fn!(tokio::sync::Mutex<Cell<u8>>::lock_owned(_): Send & Sync);
241 async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock_owned(_): !Send & !Sync);
/external/rust/crates/tokio/src/sync/
Dmutex.rs216 check_send_sync_val(arc_mutex.clone().lock_owned()); in bounds()
217 check_static_val(arc_mutex.lock_owned()); in bounds()
309 pub async fn lock_owned(self: Arc<Self>) -> OwnedMutexGuard<T> { in lock_owned() method