libstdc++
|
#include <mutex>
Public Types | |
typedef __native_type * | native_handle_type |
Public Member Functions | |
mutex (const mutex &)=delete | |
void | lock () |
native_handle_type | native_handle () noexcept |
mutex & | operator= (const mutex &)=delete |
bool | try_lock () noexcept |
void | unlock () |
The standard mutex type.
A simple, non-recursive, non-timed mutex.
Do not call lock()
and unlock()
directly, use a scoped lock type such as std::unique_lock
, std::lock_guard
, or (since C++17) std::scoped_lock
.
Definition at line 98 of file std_mutex.h.
typedef __native_type* std::mutex::native_handle_type |
Definition at line 101 of file std_mutex.h.
|
inline |
Definition at line 113 of file std_mutex.h.
|
inlinenoexcept |
Definition at line 138 of file std_mutex.h.
|
inlinenodiscardnoexcept |
Definition at line 124 of file std_mutex.h.
|
inline |
Definition at line 131 of file std_mutex.h.