Home
last modified time | relevance | path

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

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock.algorithm/
Dlock.pass.cpp20 bool locked_; member in L0
23 L0() : locked_(false) {} in L0()
27 locked_ = true; in lock()
32 locked_ = true; in try_lock()
33 return locked_; in try_lock()
36 void unlock() {locked_ = false;} in unlock()
38 bool locked() const {return locked_;} in locked()
43 bool locked_; member in L1
46 L1() : locked_(false) {} in L1()
50 locked_ = true; in lock()
[all …]
Dtry_lock.pass.cpp20 bool locked_; member in L0
23 L0() : locked_(false) {} in L0()
27 locked_ = true; in try_lock()
28 return locked_; in try_lock()
31 void unlock() {locked_ = false;} in unlock()
33 bool locked() const {return locked_;} in locked()
38 bool locked_; member in L1
41 L1() : locked_(false) {} in L1()
45 locked_ = false; in try_lock()
46 return locked_; in try_lock()
[all …]