recursive_mutex::unlock Method

recursive_mutex::unlock Method


Releases ownership of the mutex.

void unlock();

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.


Header: mutex

Namespace: std

© 2016 Microsoft