Home
last modified time | relevance | path

Searched defs:try_lock (Results 1 – 18 of 18) sorted by relevance

/llvm-project/libcxx/src/
H A Dmutex.cpp34 bool mutex::try_lock() noexcept { return __libcpp_mutex_trylock(&__m_); } in try_lock() function in mutex
70 bool recursive_mutex::try_lock() noexcept { return __libcpp_recursive_mutex_trylock(&__m_); } in try_lock() function in recursive_mutex
85 bool timed_mutex::try_lock() noexcept { in try_lock() function in timed_mutex
121 bool recursive_timed_mutex::try_lock() noexcept { in try_lock() function in recursive_timed_mutex
H A Dshared_mutex.cpp31 bool __shared_mutex_base::try_lock() { in try_lock() function in __shared_mutex_base
87 bool shared_timed_mutex::try_lock() { return __base_.try_lock(); } try_lock() function in shared_timed_mutex
/llvm-project/llvm/lib/Support/
H A DRWMutex.cpp32 bool RWMutexImpl::try_lock() { return true; } try_lock() function in RWMutexImpl
120 bool RWMutexImpl::try_lock() { try_lock() function in RWMutexImpl
156 bool RWMutexImpl::try_lock() { try_lock() function in RWMutexImpl
/llvm-project/llvm/include/llvm/Support/
H A DMutex.h58 bool try_lock() { in try_lock() function
H A DRWMutex.h162 bool try_lock() { return impl.try_lock(); } in try_lock() function
/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
H A Dtry_lock.pass.cpp29 bool try_lock() try_lock() function
/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/
H A Dmutex.pass.cpp28 bool try_lock() { if (locked) return false; locked = true; return true; } in try_lock() function
51 bool try_lock() { in try_lock() function
H A Dadopt_lock.pass.cpp27 bool try_lock() { if (locked) return false; locked = true; return true; } in try_lock() function
/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/
H A Dlock.pass.cpp42 bool try_lock() in try_lock() function in L0
65 bool try_lock() in try_lock() function in L1
88 bool try_lock() in try_lock() function in L2
H A Dtry_lock.pass.cpp28 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
/llvm-project/libc/src/__support/threads/linux/
H A Draw_mutex.h99 [[nodiscard]] LIBC_INLINE bool try_lock() { try_lock() function
H A Dmutex.h80 LIBC_INLINE MutexError try_lock() { try_lock() function
H A Drwlock.h341 template <Role role> LIBC_INLINE LockResult try_lock(RwState &old) { in try_lock() function
/llvm-project/compiler-rt/test/tsan/
H A Ddeadlock_detector_stress_test.cpp43 bool try_lock() { return 0 == pthread_mutex_trylock(&mu_); } in try_lock() function in PthreadMutex
71 bool try_lock() { return 0 == pthread_spin_trylock(&mu_); } in try_lock() function in PthreadSpinLock
95 bool try_lock() { return 0 == pthread_rwlock_trywrlock(&mu_); } in try_lock() function in PthreadRWLock
/llvm-project/clang-tools-extra/clangd/support/
H A DThreading.cpp45 bool Semaphore::try_lock() { in try_lock() function in clang::clangd::Semaphore
/llvm-project/libcxx/include/__mutex/
H A Dunique_lock.h129 __throw_system_error(EPERM, "unique_lock::try_lock: references null mutex"); in try_lock() function
/llvm-project/libc/src/__support/RPC/
H A Drpc.h
/llvm-project/libcxx/test/support/
H A Dnasty_containers.h327 bool try_lock() TEST_NOEXCEPT { return true; } in try_lock() function