/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 29 bool try_lock() in try_lock() function in L0 47 bool try_lock() in try_lock() function in L1 65 bool try_lock() in try_lock() function in L2 81 assert(std::try_lock(l0, l1) == -1); in main() 88 assert(std::try_lock(l0, l1) == 1); in main() 95 assert(std::try_lock(l0, l1) == 0); in main() 105 (void)std::try_lock(l0, l1); in main() 119 (void)std::try_lock(l0, l1); in main() 134 assert(std::try_lock(l0, l1, l2) == -1); in main() 143 assert(std::try_lock(l0, l1, l2) == 0); in main() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 28 bool try_lock() in try_lock() function in L0 46 bool try_lock() in try_lock() function in L1 64 bool try_lock() in try_lock() function in L2 80 assert(std::try_lock(l0, l1) == -1); in main() 87 assert(std::try_lock(l0, l1) == 1); in main() 94 assert(std::try_lock(l0, l1) == 0); in main() 104 (void)std::try_lock(l0, l1); in main() 118 (void)std::try_lock(l0, l1); in main() 133 assert(std::try_lock(l0, l1, l2) == -1); in main() 142 assert(std::try_lock(l0, l1, l2) == 0); in main() [all …]
|
/external/rust/crates/futures-channel/src/ |
D | oneshot.rs | 129 if let Some(mut slot) = self.data.try_lock() { in send() 141 if let Some(mut slot) = self.data.try_lock() { in send() 177 match self.tx_task.try_lock() { in poll_canceled() 215 if let Some(mut slot) = self.rx_task.try_lock() { in drop_tx() 224 if let Some(mut slot) = self.tx_task.try_lock() { in drop_tx() 233 if let Some(mut handle) = self.tx_task.try_lock() { in close_rx() 245 if let Some(mut slot) = self.data.try_lock() { in try_recv() 268 match self.rx_task.try_lock() { in recv() 289 if let Some(mut slot) = self.data.try_lock() { in recv() 309 if let Some(mut slot) = self.rx_task.try_lock() { in drop_rx() [all …]
|
D | lock.rs | 52 pub(crate) fn try_lock(&self) -> Option<TryLock<'_, T>> { in try_lock() method 94 let mut a1 = a.try_lock().unwrap(); in smoke() 95 assert!(a.try_lock().is_none()); in smoke() 99 assert_eq!(*a.try_lock().unwrap(), 2); in smoke() 100 assert_eq!(*a.try_lock().unwrap(), 2); in smoke()
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/ |
D | try_lock.pass.cpp | 27 bool try_lock() in try_lock() function 40 assert(lk.try_lock() == true); in main() 46 TEST_IGNORE_NODISCARD lk.try_lock(); in main() 55 assert(lk.try_lock() == false); in main() 62 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/ |
D | try_lock.pass.cpp | 29 bool try_lock() in try_lock() function 42 assert(lk.try_lock() == true); in main() 48 TEST_IGNORE_NODISCARD lk.try_lock(); in main() 57 assert(lk.try_lock() == false); in main() 64 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/ |
D | try_lock.pass.cpp | 34 assert(!m.try_lock()); in f() 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 while(!m.try_lock()) in f() 40 assert(m.try_lock()); in f()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/ |
D | try_lock.pass.cpp | 34 assert(!m.try_lock()); in f() 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 while(!m.try_lock()) in f() 40 assert(m.try_lock()); in f()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/ |
D | try_lock.pass.cpp | 38 assert(!m.try_lock()); in f() 39 assert(!m.try_lock()); in f() 40 assert(!m.try_lock()); in f() 41 while(!m.try_lock()) in f() 44 assert(m.try_lock()); in f()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/ |
D | try_lock.pass.cpp | 38 assert(!m.try_lock()); in f() 39 assert(!m.try_lock()); in f() 40 assert(!m.try_lock()); in f() 41 while(!m.try_lock()) in f() 44 assert(m.try_lock()); in f()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/ |
D | try_lock.pass.cpp | 44 assert(lk.try_lock() == true); in main() 50 TEST_IGNORE_NODISCARD lk.try_lock(); in main() 59 assert(lk.try_lock() == false); in main() 66 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/ |
D | try_lock.pass.cpp | 41 assert(lk.try_lock() == true); in main() 47 TEST_IGNORE_NODISCARD lk.try_lock(); in main() 56 assert(lk.try_lock() == false); in main() 63 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/ |
D | try_lock.pass.cpp | 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 assert(!m.try_lock()); in f() 38 while(!m.try_lock()) in f()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/ |
D | try_lock.pass.cpp | 34 assert(!m.try_lock()); in f() 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 while(!m.try_lock()) in f()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/ |
D | try_lock.pass.cpp | 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 assert(!m.try_lock()); in f() 38 while(!m.try_lock()) in f()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/ |
D | try_lock.pass.cpp | 34 assert(!m.try_lock()); in f() 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 while(!m.try_lock()) in f()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/ |
D | try_lock.pass.cpp | 42 assert(!m.try_lock()); in f() 43 assert(!m.try_lock()); in f() 44 assert(!m.try_lock()); in f() 45 while(!m.try_lock()) in f()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/ |
D | try_lock.pass.cpp | 38 assert(!m.try_lock()); in f() 39 assert(!m.try_lock()); in f() 40 assert(!m.try_lock()); in f() 41 while(!m.try_lock()) in f()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/ |
D | try_lock.pass.cpp | 42 assert(!m.try_lock()); in f() 43 assert(!m.try_lock()); in f() 44 assert(!m.try_lock()); in f() 45 while(!m.try_lock()) in f()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/ |
D | try_lock.pass.cpp | 38 assert(!m.try_lock()); in f() 39 assert(!m.try_lock()); in f() 40 assert(!m.try_lock()); in f() 41 while(!m.try_lock()) in f()
|
/external/rust/crates/spin/src/mutex/ |
D | spin.rs | 237 pub fn try_lock(&self) -> Option<SpinMutexGuard<T>> { in try_lock() method 277 match self.try_lock() { in fmt() 365 fn try_lock(&self) -> bool { in try_lock() method 367 Self::try_lock(self).map(core::mem::forget).is_some() in try_lock() 443 fn try_lock() { in try_lock() function 447 let a = mutex.try_lock(); in try_lock() 451 let b = mutex.try_lock(); in try_lock() 456 let c = mutex.try_lock(); in try_lock() 542 assert!(lock.try_lock().is_some()); in test_mutex_force_lock()
|
D | fair.rs | 265 pub fn try_lock(&self) -> Option<FairMutexGuard<T>> { in try_lock() method 365 .field("data", &LockWrapper(self.try_lock())) in fmt() 500 pub fn try_lock(self) -> Result<FairMutexGuard<'a, T>, Self> { in try_lock() method 520 match self.try_lock() { in lock() 563 fn try_lock(&self) -> bool { in try_lock() method 565 Self::try_lock(self).map(core::mem::forget).is_some() in try_lock() 636 fn try_lock() { in try_lock() function 640 let a = mutex.try_lock(); in try_lock() 644 let b = mutex.try_lock(); in try_lock() 649 let c = mutex.try_lock(); in try_lock() [all …]
|
D | ticket.rs | 159 match self.try_lock() { in fmt() 245 pub fn try_lock(&self) -> Option<TicketMutexGuard<T>> { in try_lock() method 365 fn try_lock(&self) -> bool { in try_lock() method 367 Self::try_lock(self).map(core::mem::forget).is_some() in try_lock() 438 fn try_lock() { in try_lock() function 442 let a = mutex.try_lock(); in try_lock() 446 let b = mutex.try_lock(); in try_lock() 451 let c = mutex.try_lock(); in try_lock()
|
/external/libcxx/include/ |
D | mutex | 30 bool try_lock(); 47 bool try_lock() noexcept; 64 bool try_lock(); 82 bool try_lock() noexcept; 150 bool try_lock(); 171 int try_lock(L1&, L2&, L3&...); 226 bool try_lock() _NOEXCEPT; 250 bool try_lock() _NOEXCEPT; 294 bool try_lock() _NOEXCEPT; 333 try_lock(_L0& __l0, _L1& __l1) [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/include/ |
D | mutex | 29 bool try_lock(); 46 bool try_lock() noexcept; 63 bool try_lock(); 81 bool try_lock() noexcept; 149 bool try_lock(); 170 int try_lock(L1&, L2&, L3&...); 231 bool try_lock() _NOEXCEPT; 254 bool try_lock() _NOEXCEPT; 296 bool try_lock() _NOEXCEPT; 335 try_lock(_L0& __l0, _L1& __l1) [all …]
|