Search:
Reference
<mutex>
recursive_timed_mutex
class
<mutex>
std::
recursive_timed_mutex
class recursive_timed_mutex;
Recursive timed mutex
A
recursive timed mutex
combines both the features of
recursive_mutex
and the features of
timed_mutex
into a single class: it supports both acquiring multiple lock levels by a single thread and also
timed try-lock
requests.
It is guaranteed to be a
standard-layout
class.
Member types
member type
description
native_handle_type
Type returned by
native_handle
(only defined if library implementation supports it)
Member functions
(constructor)
Construct recursive_timed_mutex
(public member function )
lock
Lock recursive timed mutex
(public member function )
try_lock
Lock recursive timed mutex if not locked
(public member function )
try_lock_for
Try to lock for time span
(public member function )
try_lock_until
Try to lock until time point
(public member function )
unlock
Unlock timed mutex
(public member function )
recursive_timed_mutex::native_handle
C++
Information
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfenv> (fenv.h)
<cfloat> (float.h)
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctgmath> (tgmath.h)
<ctime> (time.h)
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
<array>
<deque>
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
<unordered_map>
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
<atomic>
<condition_variable>
<future>
<mutex>
<thread>
Other:
<algorithm>
<bitset>
<chrono>
<codecvt>
<complex>
<exception>
<functional>
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<random>
<ratio>
<regex>
<stdexcept>
<string>
<system_error>
<tuple>
<typeindex>
<typeinfo>
<type_traits>
<utility>
<valarray>
<mutex>
classes:
adopt_lock_t
defer_lock_t
lock_guard
mutex
once_flag
recursive_mutex
recursive_timed_mutex
timed_mutex
try_to_lock_t
unique_lock
functions:
call_once
lock
try_lock
constants:
adopt_lock
defer_lock
try_to_lock
recursive_timed_mutex
recursive_timed_mutex::recursive_timed_mutex
recursive_timed_mutex::~recursive_timed_mutex
member functions:
recursive_timed_mutex::lock
recursive_timed_mutex::native_handle
recursive_timed_mutex::try_lock
recursive_timed_mutex::try_lock_for
recursive_timed_mutex::try_lock_until
recursive_timed_mutex::unlock