◐ Shell
clean mode source ↗

std::timed_mutex – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<mutex>

class timed_mutex;

(seit C++11)

Die timed_mutex Klasse ist ein Synchronisierungsgrundeinheit, die verwendet werden, um gemeinsame Daten aus gleichzeitig von mehreren Threads zugegriffen schützen können .

Original:

The timed_mutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

In a manner similar to mutex, timed_mutex offers exclusive, non-recursive ownership semantics. In addition, timed_mutex provides the ability to attempt to claim ownership of a timed_mutex with a timeout via the try_lock_for and try_lock_until methods.

Die timed_mutex Klasse ist nicht kopierbar .

Original:

The timed_mutex class is non-copyable.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Mitglied Typen

Mitglied Typ

Original:

Member type

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Definition
native_handle_type

Implementierung definiert

Original:

implementation-defined

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Member-Funktionen

konstruiert den Mutex
(öffentliche Elementfunktion) [edit]

Sperren

Original:

Locking

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

sperrt den Mutex, blockiert wenn der Mutex nicht verfügbar ist
(öffentliche Elementfunktion) [edit]
versucht den Mutex zu sperren und kehrt zurück, wenn der Mutex nicht verfügbar ist
(öffentliche Elementfunktion) [edit]

versucht, den Mutex zu sperren, kehrt zurück, wenn der Mutex hat been
unavailable für das angegebene Timeout-Dauer

Original:

tries to lock the mutex, returns if the mutex has been
unavailable for the specified timeout duration

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(öffentliche Elementfunktion) [edit]

versucht, den Mutex verriegeln, zurückgibt, wenn der Mutex hat been
unavailable bis bestimmten Zeitpunkt erreicht worden ist

Original:

tries to lock the mutex, returns if the mutex has been
unavailable until specified time point has been reached

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(öffentliche Elementfunktion) [edit]
entsperrt den Mutex
(öffentliche Elementfunktion) [edit]

Ureinwohner Griff

Original:

Native handle

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

gibt das zugrunde liegende implementierungsabhängige Thread-Handle zurück
(öffentliche Elementfunktion) [edit]