C++11 mutex drop in replacement.
More...
C++11 mutex drop in replacement.
- See also
- std::mutex, std::lock_guard and std::unique_lock
- Author
- Raphael Hiesgen <raphael.hiesgen (at) haw-hamburg.de>
Definition in file mutex.hpp.
#include "mutex.h"
#include <utility>
#include <stdexcept>
#include <system_error>
Go to the source code of this file.
|
constexpr defer_lock_t | riot::defer_lock = defer_lock_t() |
| Tag constant for defer lock strategy.
|
|
constexpr try_to_lock_t | riot::try_to_lock = try_to_lock_t() |
| Tag constant for try lock strategy.
|
|
constexpr adopt_lock_t | riot::adopt_lock = adopt_lock_t() |
| Tag constant for adopt lock strategy.
|
|
◆ swap()
Swaps two mutexes.
- Parameters
-
[in,out] | lhs | Reference to one mutex. |
[in,out] | rhs | Reference to the other mutex. |
Definition at line 309 of file mutex.hpp.