Partager via


recursive_mutex::unlock Method

Releases ownership of the mutex.

void unlock();

Remarks

This method releases ownership of the mutex only after it is called as many times as lock and try_lock have been called successfully on the recursive_mutex object.

If the calling thread does not own the mutex, the behavior is undefined.

Requirements

Header: mutex

Namespace: std

See Also

Reference

recursive_mutex Class

<mutex>