A RetroSearch Logo

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

Search Query:

Showing content from https://cplusplus.com/recursive_mutex below:

class

<mutex>

std::recursive_mutex

Recursive mutex class

A recursive mutex is a lockable object, just like mutex, but allows the same thread to acquire multiple levels of ownership over the mutex object.

This allows to lock (or try-lock) the mutex object from a thread that is already locking it, acquiring a new level of ownership over the mutex object: the mutex object will actually remain locked owning the thread until its member unlock is called as many times as this level of ownership.

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 recursive_mutex (public member function)
lock
Lock recursive mutex (public member function)
try_lock
Lock mutex if not locked by other threads (public member function)
unlock
Unlocks mutex (public member function)
native_handle
Get native handle (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