Construct a std::mutex
object.
mutex();
- Effects:
Constructs a
std::mutexinstance.- Postconditions:
The newly-constructed
std::mutexobject is initially unlocked.- Throws:
An exception of type
std::system_errorif unable to create a newstd::mutexinstance.
Header
#include <mutex>