Lines Matching full:mutex
1 //===------------------------- mutex.cpp ----------------------------------===//
11 #include "mutex"
24 mutex::~mutex()
30 mutex::lock()
34 __throw_system_error(ec, "mutex lock failed");
38 mutex::try_lock() _NOEXCEPT
44 mutex::unlock() _NOEXCEPT
120 lock_guard<mutex> _(__m_);
126 unique_lock<mutex> lk(__m_);
135 unique_lock<mutex> lk(__m_, try_to_lock);
147 lock_guard<mutex> _(__m_);
162 lock_guard<mutex> _(__m_);
169 unique_lock<mutex> lk(__m_);
187 unique_lock<mutex> lk(__m_, try_to_lock);
202 unique_lock<mutex> lk(__m_);
225 /// even though the accesses are protected by a mutex because threads