Scroll to navigation

std::mutex(3cxx) std::mutex(3cxx)

NAME

std::mutex - The standard mutex type.

SYNOPSIS

#include <mutex>

Inherits std::__mutex_base.

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 ()

Detailed Description

The standard mutex type.

Definition at line 83 of file mutex.

Member Typedef Documentation

typedef __native_type* std::mutex::native_handle_type

Definition at line 86 of file mutex.

Member Function Documentation

void std::mutex::lock () [inline]

Definition at line 98 of file mutex.

native_handle_type std::mutex::native_handle () [inline], [noexcept]

Definition at line 122 of file mutex.

bool std::mutex::try_lock () [inline], [noexcept]

Definition at line 108 of file mutex.

void std::mutex::unlock () [inline]

Definition at line 115 of file mutex.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Sun Jan 8 2023 libstdc++