Lines Matching defs:mutex
10 // <mutex>
12 // template <class Mutex> class unique_lock;
14 // template <class Mutex>
15 // void swap(unique_lock<Mutex>& x, unique_lock<Mutex>& y);
17 #include <mutex>
20 struct mutex
26 mutex m;
30 std::unique_lock<mutex> lk1(m);
31 std::unique_lock<mutex> lk2;
33 assert(lk1.mutex() == nullptr);
35 assert(lk2.mutex() == &m);