Home
last modified time | relevance | path

Searched refs:TryLock (Results 1 – 25 of 85) sorted by relevance

1234

/external/rust/crates/tokio/src/util/
Dtry_lock.rs8 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/
Dlock.rs24 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/
Dtsan_mutex.cpp29 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()
Dtsan_test_util.h50 bool TryLock();
106 bool TryLock(const Mutex &m);
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_mutex.cc30 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()
Dtsan_test_util.h51 bool TryLock();
107 bool TryLock(const Mutex &m);
/external/rust/crates/tokio/src/runtime/tests/
Dtask.rs3 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/
Dmutex.h177 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/
DSBFrame.cpp106 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 …]
DSBThread.cpp100 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 …]
DSBProcess.cpp201 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/
Dmutex_abseil.h26 RTC_WARN_UNUSED_RESULT bool TryLock() RTC_EXCLUSIVE_TRYLOCK_FUNCTION(true) { in TryLock() function
27 return mutex_.TryLock(); in TryLock()
Dmutex.h48 RTC_WARN_UNUSED_RESULT bool TryLock() RTC_EXCLUSIVE_TRYLOCK_FUNCTION(true) { in TryLock() function
50 if (impl_.TryLock()) { in TryLock()
Dmutex_critical_section.h40 RTC_WARN_UNUSED_RESULT bool TryLock() RTC_EXCLUSIVE_TRYLOCK_FUNCTION(true) { in TryLock() function
Dmutex_pthread.h42 RTC_WARN_UNUSED_RESULT bool TryLock() RTC_EXCLUSIVE_TRYLOCK_FUNCTION(true) { in TryLock() function
/external/rust/crates/tokio/src/runtime/
Dpark.rs10 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/
Dmutex_nonprod.cc75 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/
Dmutex_nonprod.cc70 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/
Dmutex_nonprod.cc70 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/
Dwarn-thread-safety-analysis.cpp18 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/
Dsanitizer_mutex.h29 if (TryLock()) in Lock()
34 bool TryLock() { in TryLock() function
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h30 if (TryLock()) in Lock()
35 bool TryLock() { in TryLock() function
/external/clang/test/SemaCXX/
Dwarn-thread-safety-analysis.cpp35 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/
Dcustom_mutex1.cpp25 if (mu.TryLock()) { in main()
/external/llvm-project/compiler-rt/lib/scudo/
Dscudo_tsd.h33 if (Mutex.TryLock()) { in ALIGNED()

1234