TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
Python
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
Python11
<cfenv> (fenv.h)
<cfloat> (float.h)
Python11
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
Python11
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
Python11
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
Python11
<ctgmath> (tgmath.h)
<ctime> (time.h)
Python11
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
Python11
<array>
<deque>
Python11
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
Python11
<unordered_map>
Python11
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
Python11
<atomic>
Python11
<condition_variable>
Python11
<future>
Python11
<mutex>
Python11
<thread>
Other:
<algorithm>
<bitset>
Python11
<chrono>
Python11
<codecvt>
<complex>
<exception>
<functional>
Python11
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
Python11
<random>
Python11
<ratio>
Python11
<regex>
<stdexcept>
<string>
Python11
<system_error>
Python11
<tuple>
Python11
<type_traits>
Python11
<typeindex>
<typeinfo>
<utility>
<valarray>
<algorithm>
<bitset>
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfloat> (float.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<complex>
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstddef> (stddef.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctime> (time.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
<deque>
<exception>
<fstream>
<functional>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<iterator>
<limits>
<list>
<locale>
<map>
<memory>
<new>
<numeric>
<ostream>
<queue>
<set>
<sstream>
<stack>
<stdexcept>
<streambuf>
<string>
<typeinfo>
<utility>
<valarray>
<vector>
Python11
<array>
Python11
<atomic>
Python11
<cfenv> (fenv.h)
Python11
<chrono>
Python11
<cinttypes> (inttypes.h)
Python11
<codecvt>
Python11
<condition_variable>
Python11
<cstdbool> (stdbool.h)
Python11
<cstdint> (stdint.h)
Python11
<ctgmath> (tgmath.h)
Python11
<cuchar> (uchar.h)
Python11
<forward_list>
Python11
<future>
Python11
<initializer_list>
Python11
<mutex>
Python11
<random>
Python11
<ratio>
Python11
<regex>
Python11
<system_error>
Python11
<thread>
Python11
<tuple>
Python11
<type_traits>
Python11
<typeindex>
Python11
<unordered_map>
Python11
<unordered_set>
<mutex>
classes
Python11
adopt_lock_t
Python11
defer_lock_t
Python11
lock_guard
Python11
mutex
Python11
once_flag
Python11
recursive_mutex
Python11
recursive_timed_mutex
Python11
timed_mutex
Python11
try_to_lock_t
Python11
unique_lock
functions
Python11
call_once
Python11
lock
Python11
try_lock
constants
Python11
adopt_lock
Python11
defer_lock
Python11
try_to_lock
Python11
adopt_lock
Python11
adopt_lock_t
Python11
call_once
Python11
defer_lock
Python11
defer_lock_t
Python11
lock
Python11
lock_guard
Python11
mutex
Python11
once_flag
Python11
recursive_mutex
Python11
recursive_timed_mutex
Python11
timed_mutex
Python11
try_lock
Python11
try_to_lock
Python11
try_to_lock_t
Python11
unique_lock
timed_mutex
Python11
timed_mutex::~timed_mutex
Python11
timed_mutex::timed_mutex
member functions
Python11
timed_mutex::lock
Python11
timed_mutex::native_handle
Python11
timed_mutex::try_lock
Python11
timed_mutex::try_lock_for
Python11
timed_mutex::try_lock_until
Python11
timed_mutex::unlock
Python11
timed_mutex::lock
Python11
timed_mutex::native_handle
Python11
timed_mutex::timed_mutex
Python11
timed_mutex::try_lock
Python11
timed_mutex::try_lock_for
Python11
timed_mutex::try_lock_until
Python11
timed_mutex::unlock
Python11
timed_mutex::~timed_mutex
Reference
<mutex>
timed_mutex
class
<mutex>
std::
timed_mutex
class timed_mutex;
Timed mutex class
A
timed mutex
is a
time lockable object
that is designed to signal when critical sections of code need exclusive access, just like a regular
mutex
, but additionally supporting
timed try-lock
requests.
As such, a
timed_mutex
has two additional members:
try_lock_for
and
try_lock_until
.
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 timed_mutex
(public member function)
lock
Lock timed mutex
(public member function)
try_lock
Lock 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)
native_handle
Get native handle
(public member function)