A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/mutex/mutex/mutex/ below:

public member function

<mutex>

std::mutex::mutex default (1)
constexpr mutex() noexcept;
copy [deleted] (2)
mutex (const mutex&) = delete;

Construct mutex

Constructs a mutex object.

The object is in an unlocked state.

mutex objects cannot be copied/moved (both the copy constructor and assignment operator are deleted for this type).



Parameters none

Data races The construction of mutex is not atomic itself: Accessing the object while being constructed may initiate a data race.

Exception safetyNo-throw guarantee: never throws exceptions.

See also
mutex::lock
Lock mutex (public member function)
mutex::unlock
Unlock mutex (public member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4