Home
last modified time | relevance | path

Searched refs:locked_ (Results 1 – 4 of 4) sorted by relevance

/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/
Dlock.pass.cpp22 bool locked_; member in L0
25 L0() : locked_(false) {} in L0()
29 locked_ = true; in lock()
34 locked_ = true; in try_lock()
35 return locked_; in try_lock()
38 void unlock() {locked_ = false;} in unlock()
40 bool locked() const {return locked_;} in locked()
45 bool locked_; member in L1
48 L1() : locked_(false) {} in L1()
52 locked_ = true; in lock()
[all …]
Dtry_lock.pass.cpp22 bool locked_; member in L0
25 L0() : locked_(false) {} in L0()
29 locked_ = true; in try_lock()
30 return locked_; in try_lock()
33 void unlock() {locked_ = false;} in unlock()
35 bool locked() const {return locked_;} in locked()
40 bool locked_; member in L1
43 L1() : locked_(false) {} in L1()
47 locked_ = false; in try_lock()
48 return locked_; in try_lock()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.cc139 if (locked_[i] == 0) in Lock()
141 CHECK_NE(locked_[i], max_seq); in Lock()
142 if (max_seq < locked_[i]) { in Lock()
143 max_seq = locked_[i]; in Lock()
147 locked_[t] = ++seq_; in Lock()
161 CHECK(locked_[t]); in Unlock()
162 locked_[t] = 0; in Unlock()
167 CHECK_EQ(locked_[i], 0); in CheckNoLocks()
Dtsan_mutex.h77 u64 locked_[MutexTypeCount]; variable