public member function
<mutex>

std::recursive_mutex::recursive_mutex

default (1)
constexpr recursive_mutex() noexcept;
copy [deleted] (2)
recursive_mutex (const recursive_mutex&) = delete;
Construct recursive_mutex
Constructs a recursive_mutex object.

The object is in an unlocked state.

recursive_mutex objects cannot be copied/moved (both the copy constructor and assignment operator are deleted for this type).

Parameters

none

Data races

The construction of recursive_mutex is not atomic itself: Accessing the object while being constructed may initiate a data race.

Exception safety

No-throw guarantee: never throws exceptions.

See also