Lines Matching defs:mutex
10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
19 struct mutex
27 int mutex::lock_count = 0;
28 int mutex::unlock_count = 0;
30 mutex m;
34 std::unique_lock<mutex> lk(m);
35 assert(lk.mutex() == &m);
37 assert(mutex::lock_count == 1);
38 assert(mutex::unlock_count == 0);
40 assert(lk.mutex() == nullptr);
42 assert(mutex::lock_count == 1);
43 assert(mutex::unlock_count == 0);