unique_lock::unlock Method
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