C++11 compliant implementation of unique lock.  
 More...
template<class Mutex>
class riot::unique_lock< Mutex >
C++11 compliant implementation of unique lock. 
- See also
 - std::unique_lock  
 
Definition at line 142 of file mutex.hpp.
 
#include <mutex.hpp>
◆ mutex()
Provides access to the associated mutex. 
- Returns
 - A pointer to the associated mutex or nullptr it there was none. 
 
Definition at line 250 of file mutex.hpp.
 
 
◆ operator bool()
Operator to query the ownership of the associated mutex. 
- Returns
 true if an associated mutex exists and the lock owns it, false otherwise. 
Definition at line 245 of file mutex.hpp.
 
 
◆ owns_lock()
Query ownership of the associate mutex. 
- Returns
 true if an associated mutex exists and the lock owns it, false otherwise. 
Definition at line 239 of file mutex.hpp.
 
 
◆ release()
Disassociate this lock from its mutex. 
The caller is responsible to unlock the mutex if it was locked before. 
- Returns
 - A pointer to the associated mutex or 
nullptr if there was none.  
Definition at line 227 of file mutex.hpp.
 
 
◆ try_lock()
Tries to lock the associated mutex. 
- Returns
 true if the mutex has been locked successfully, false otherwise. 
Definition at line 277 of file mutex.hpp.
 
 
The documentation for this class was generated from the following file: