Documentation Home >> Headers >> <mutex> Header >> std::unique_lock >> std::unique_lock::mutex Member Function

Return the mutex associated with *this if any.

mutex_type* mutex() const;

Returns:

A pointer to the mutex associated with *this if any, NULL otherwise.

Throws:

Nothing.

Header

#include <mutex>

See Also