Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

recursive_mutex Class

Represents a mutex type. In contrast to mutex, the behavior of calls to locking methods for objects that are already locked is well-defined.

class recursive_mutex;



recursive_mutex::recursive_mutex Constructor

Constructs a recursive_mutex object.

recursive_mutex::~recursive_mutex Destructor

Releases any resources that are used by the recursive_mutex object.



recursive_mutex::lock Method

Blocks the calling thread until the thread obtains ownership of the mutex.

recursive_mutex::try_lock Method

Attempts to obtain ownership of the mutex without blocking.

recursive_mutex::unlock Method

Releases ownership of the mutex.

Header: mutex

Namespace: std

© 2015 Microsoft