public member function
<mutex>

std::recursive_mutex::~recursive_mutex

~recursive_mutex();
Destroy recursive mutex
Destroys the recursive_mutex object.

If the object is locked on destruction, it causes undefined behavior.

Exception safety

If not locked, it never throws exceptions (no-throw guarantee).
Otherwise, undefined behavior.