Searched defs:try_lock (Results 1 - 6 of 6) sorted by relevance

/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
H A Dtry_lock.pass.cpp14 // bool try_lock();
23 bool try_lock() function in struct:mutex
36 assert(lk.try_lock() == true);
41 lk.try_lock();
49 assert(lk.try_lock() == false);
55 lk.try_lock();
/external/libcxx/src/
H A Dshared_mutex.cpp34 shared_timed_mutex::try_lock() function in class:shared_timed_mutex
/external/libcxx/test/thread/thread.mutex/thread.lock.algorithm/
H A Dlock.pass.cpp30 bool try_lock() function in class:L0
53 bool try_lock() function in class:L1
76 bool try_lock() function in class:L2
H A Dtry_lock.pass.cpp13 // int try_lock(L1&, L2&, L3&...);
25 bool try_lock() function in class:L0
43 bool try_lock() function in class:L1
61 bool try_lock() function in class:L2
77 assert(std::try_lock(l0, l1) == -1);
84 assert(std::try_lock(l0, l1) == 1);
91 assert(std::try_lock(l0, l1) == 0);
100 std::try_lock(l0, l1);
114 std::try_lock(l0, l1);
128 assert(std::try_lock(l
[all...]
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_mutex.cc147 void MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec, bool try_lock) { argument
177 if (!try_lock)
179 ctx->dd->MutexAfterLock(&cb, &s->dd, true, try_lock);
/external/compiler-rt/test/tsan/
H A Ddeadlock_detector_stress_test.cc46 bool try_lock() { return 0 == pthread_mutex_trylock(&mu_); } function in class:PthreadMutex
73 bool try_lock() { return 0 == pthread_spin_trylock(&mu_); } function in class:PthreadSpinLock
94 bool try_lock() { return 0 == pthread_rwlock_trywrlock(&mu_); } function in class:PthreadRWLock
145 return locks_[i]->try_lock();

Completed in 795 milliseconds