std::recursive_mutex

From Cppreference

Jump to: navigation, search
Defined in header <mutex>

class recursive_mutex;
(C++11 feature)

The class mutex is a synchronization primitive, offering exclusive, recursive ownership semantics. The class is non-copyable.

Contents

[edit] Member types

Member type Definition
native_handle_type implementation-defined

[edit] Member functions

(constructor)
constructs the mutex
(public member function)
Locking
lock
locks the mutex, blocks if the mutex is not available
(public member function)
try_lock
tries to lock the mutex, returns if the mutex is not available
(public member function)
unlock
unlocks the mutex
(public member function)
Native handle
native_handle
returns the underlying imlementation-defined thread handle
(public member function)