Documentation Home >> Headers >> <mutex> Header >> std::timed_mutex >> std::timed_mutex Default Constructor

Construct a std::timed_mutex object.

timed_mutex();

Effects:

Constructs a std::timed_mutex instance.

Postconditions:

The newly-constructed std::timed_mutex object is initially unlocked.

Throws:

An exception of type std::system_error if unable to create a new std::timed_mutex instance.

Header

#include <mutex>

See Also