Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Releases ownership of the associated mutex.
void unlock();
Remarks
If the calling thread doesn't own the associated mutex, this method throws a system_error that has an error code of operation_not_permitted.
Otherwise, this method calls unlock on the associated mutex and sets the internal thread ownership flag to false.
Requirements
Header: mutex
Namespace: std