std::mutex
- Provided by: libstdc++-12-doc (Version: 12.5.0-9ubuntu1)
- Source: gcc-12
- Report a bug
#include <mutex>
typedef __native_type * native_handle_type
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.
Since
Generated automatically by Doxygen for libstdc++ from the source code.