Bagikan melalui


recursive_timed_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, try_lock, try_lock_for, and try_lock_until have been called successfully on the recursive_timed_mutex object.

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

Requirements

Header: mutex

Namespace: std

See Also

Reference

<mutex>

recursive_timed_mutex Class

Other Resources

Header Files