Releases a lock on the mutex associated with *this.
void unlock();
- Preconditions:
this->mutex()!=NULL,this->owns_lock()==true.- Effects:
Calls
this->mutex()->unlock().- Throws:
Any exceptions thrown by
this->mutex()->unlock().std::system_errorwith an error code ofstd::errc::operation_not_permittedifthis->owns_lock()==falseon entry.- Postcondition:
this->owns_lock()==false.
Header
#include <mutex>