std::recursive_timed_mutex

From Cppreference

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

class recursive_timed_mutex;
(C++11 feature)

The class recursive_timed_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)
try_lock_for
tries to lock the mutex, returns if the mutex is not
available for the specified timeout duration
(public member function)
try_lock_until
tries to lock the mutex, returns if the mutex is not
available until specified time point has been reached
(public member function)
unlock
unlocks the mutex
(public member function)
Native handle
native_handle
returns the underlying imlementation-defined thread handle
(public member function)