/external/rust/crates/tokio/src/util/ |
D | try_lock.rs | 8 pub(crate) struct TryLock<T> { struct 14 lock: &'a TryLock<T>, argument 18 unsafe impl<T: Send> Send for TryLock<T> {} implementation 19 unsafe impl<T: Send> Sync for TryLock<T> {} implementation 25 TryLock { 32 impl<T> TryLock<T> { implementation 35 pub(crate) const fn new(data: T) -> TryLock<T> { in new() 41 pub(crate) fn new(data: T) -> TryLock<T> { in new()
|
/external/rust/crates/futures-channel/src/ |
D | lock.rs | 24 pub(crate) struct TryLock<'a, T> { struct 55 pub(crate) fn try_lock(&self) -> Option<TryLock<'_, T>> { in try_lock() 57 Some(TryLock { __ptr: self }) in try_lock() 64 impl<T> Deref for TryLock<'_, T> { implementation 73 impl<T> DerefMut for TryLock<'_, T> { implementation 84 impl<T> Drop for TryLock<'_, T> { implementation
|
/external/llvm-project/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_mutex.cpp | 29 CHECK(t.TryLock(m)); in TEST() 33 CHECK(!t.TryLock(m)); in TEST() 47 CHECK(t.TryLock(m)); in TEST() 51 CHECK(!t.TryLock(m)); in TEST() 65 CHECK(t.TryLock(m)); in TEST() 69 CHECK(!t.TryLock(m)); in TEST() 83 CHECK(!t.TryLock(m)); in TEST()
|
D | tsan_test_util.h | 50 bool TryLock(); 106 bool TryLock(const Mutex &m);
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_mutex.cc | 30 CHECK(t.TryLock(m)); in TEST() 34 CHECK(!t.TryLock(m)); in TEST() 48 CHECK(t.TryLock(m)); in TEST() 52 CHECK(!t.TryLock(m)); in TEST() 66 CHECK(t.TryLock(m)); in TEST() 70 CHECK(!t.TryLock(m)); in TEST() 84 CHECK(!t.TryLock(m)); in TEST()
|
D | tsan_test_util.h | 51 bool TryLock(); 107 bool TryLock(const Mutex &m);
|
/external/rust/crates/tokio/src/runtime/tests/ |
D | task.rs | 3 use crate::util::TryLock; 55 core: TryLock::new(Core { in with() 70 core: TryLock<Core>, 78 static CURRENT: TryLock<Option<Runtime>> = TryLock::new(None);
|
/external/gflags/src/ |
D | mutex.h | 177 inline bool TryLock(); // If free, Lock() and return true, else return false 225 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock() function 244 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function 268 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function 293 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function
|
/external/llvm-project/lldb/source/API/ |
D | SBFrame.cpp | 106 if (stop_locker.TryLock(&process->GetRunLock())) in operator bool() 127 if (stop_locker.TryLock(&process->GetRunLock())) { in GetSymbolContext() 150 if (stop_locker.TryLock(&process->GetRunLock())) { in GetModule() 175 if (stop_locker.TryLock(&process->GetRunLock())) { in GetCompileUnit() 199 if (stop_locker.TryLock(&process->GetRunLock())) { in GetFunction() 223 if (stop_locker.TryLock(&process->GetRunLock())) { in GetSymbol() 246 if (stop_locker.TryLock(&process->GetRunLock())) { in GetBlock() 267 if (stop_locker.TryLock(&process->GetRunLock())) { in GetFrameBlock() 288 if (stop_locker.TryLock(&process->GetRunLock())) { in GetLineEntry() 338 if (stop_locker.TryLock(&process->GetRunLock())) { in GetPC() [all …]
|
D | SBThread.cpp | 100 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetQueue() 125 if (stop_locker.TryLock(&process->GetRunLock())) in operator bool() 147 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetStopReason() 163 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetStopReasonDataCount() 213 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetStopReasonDataAtIndex() 328 if (!stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in GetStopDescription() 352 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetStopReturnValue() 394 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetName() 411 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetQueueName() 428 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetQueueID() [all …]
|
D | SBProcess.cpp | 201 const bool can_update = stop_locker.TryLock(&process_sp->GetRunLock()); in GetNumThreads() 438 const bool can_update = stop_locker.TryLock(&process_sp->GetRunLock()); in GetThreadAtIndex() 455 if (stop_locker.TryLock(&process_sp->GetRunLock())) { in GetNumQueues() 474 if (stop_locker.TryLock(&process_sp->GetRunLock())) { in GetQueueAtIndex() 734 const bool can_update = stop_locker.TryLock(&process_sp->GetRunLock()); in GetThreadByID() 753 const bool can_update = stop_locker.TryLock(&process_sp->GetRunLock()); in GetThreadByIndexID() 880 if (stop_locker.TryLock(&process_sp->GetRunLock())) { in ReadMemory() 904 if (stop_locker.TryLock(&process_sp->GetRunLock())) { in ReadCStringFromMemory() 928 if (stop_locker.TryLock(&process_sp->GetRunLock())) { in ReadUnsignedFromMemory() 951 if (stop_locker.TryLock(&process_sp->GetRunLock())) { in ReadPointerFromMemory() [all …]
|
/external/webrtc/rtc_base/synchronization/ |
D | mutex_abseil.h | 26 RTC_WARN_UNUSED_RESULT bool TryLock() RTC_EXCLUSIVE_TRYLOCK_FUNCTION(true) { in TryLock() function 27 return mutex_.TryLock(); in TryLock()
|
D | mutex.h | 48 RTC_WARN_UNUSED_RESULT bool TryLock() RTC_EXCLUSIVE_TRYLOCK_FUNCTION(true) { in TryLock() function 50 if (impl_.TryLock()) { in TryLock()
|
D | mutex_critical_section.h | 40 RTC_WARN_UNUSED_RESULT bool TryLock() RTC_EXCLUSIVE_TRYLOCK_FUNCTION(true) { in TryLock() function
|
D | mutex_pthread.h | 42 RTC_WARN_UNUSED_RESULT bool TryLock() RTC_EXCLUSIVE_TRYLOCK_FUNCTION(true) { in TryLock() function
|
/external/rust/crates/tokio/src/runtime/ |
D | park.rs | 10 use crate::util::TryLock; 45 driver: TryLock<Driver>, 61 driver: TryLock::new(driver), in new()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/synchronization/internal/ |
D | mutex_nonprod.cc | 75 bool MutexImpl::TryLock() { in TryLock() function in absl::synchronization_internal::MutexImpl 134 bool MutexImpl::TryLock() { in TryLock() function in absl::synchronization_internal::MutexImpl 207 bool Mutex::TryLock() { return impl()->TryLock(); } in TryLock() function in absl::Mutex
|
/external/webrtc/third_party/abseil-cpp/absl/synchronization/internal/ |
D | mutex_nonprod.cc | 70 bool MutexImpl::TryLock() { in TryLock() function in absl::synchronization_internal::MutexImpl 129 bool MutexImpl::TryLock() { in TryLock() function in absl::synchronization_internal::MutexImpl 202 bool Mutex::TryLock() { return impl()->TryLock(); } in TryLock() function in absl::Mutex
|
/external/abseil-cpp/absl/synchronization/internal/ |
D | mutex_nonprod.cc | 70 bool MutexImpl::TryLock() { in TryLock() function in absl::synchronization_internal::MutexImpl 129 bool MutexImpl::TryLock() { in TryLock() function in absl::synchronization_internal::MutexImpl 202 bool Mutex::TryLock() { return impl()->TryLock(); } in TryLock() function in absl::Mutex
|
/external/llvm-project/clang/test/SemaCXX/ |
D | warn-thread-safety-analysis.cpp | 18 bool TryLock() EXCLUSIVE_TRYLOCK_FUNCTION(true); 1745 if (mu.TryLock()) { in foo1() 1752 if (!mu.TryLock()) return; in foo2() 1758 if (__builtin_expect(!mu.TryLock(), false)) in foo2_builtin_expect() 1765 bool b = mu.TryLock(); in foo3() 1773 bool b = mu.TryLock(); in foo3_builtin_expect() 1781 bool b = mu.TryLock(); in foo4() 1788 while (mu.TryLock()) { in foo5() 1795 bool b = mu.TryLock(); in foo6() 1803 bool b1 = mu.TryLock(); in foo7() [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_mutex.h | 29 if (TryLock()) in Lock() 34 bool TryLock() { in TryLock() function
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_mutex.h | 30 if (TryLock()) in Lock() 35 bool TryLock() { in TryLock() function
|
/external/clang/test/SemaCXX/ |
D | warn-thread-safety-analysis.cpp | 35 bool TryLock() __attribute__((exclusive_trylock_function(true))); 1714 if (mu.TryLock()) { in foo1() 1721 if (!mu.TryLock()) return; in foo2() 1727 bool b = mu.TryLock(); in foo3() 1735 bool b = mu.TryLock(); in foo4() 1742 while (mu.TryLock()) { in foo5() 1749 bool b = mu.TryLock(); in foo6() 1757 bool b1 = mu.TryLock(); in foo7() 1768 bool b = mu.TryLock(); in foo8() 1783 bool b = mu.TryLock(); in foo9() [all …]
|
/external/llvm-project/compiler-rt/test/tsan/ |
D | custom_mutex1.cpp | 25 if (mu.TryLock()) { in main()
|
/external/llvm-project/compiler-rt/lib/scudo/ |
D | scudo_tsd.h | 33 if (Mutex.TryLock()) { in ALIGNED()
|