std::recursive_timed_mutex
Aus cppreference.com
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
definiert in Header <mutex> | ||
class recursive_timed_mutex; | (seit C++11) | |
Die
recursive_timed_mutex
Klasse ist ein Synchronisierungsgrundeinheit, die verwendet werden, um gemeinsame Daten aus gleichzeitig von mehreren Threads zugegriffen schützen können .Original:
The
recursive_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.
You can help to correct and verify the translation. Click here for instructions.
In einer ähnlichen Weise wie std::thread::recursive_mutex stellt
recursive_timed_mutex
exklusiv, rekursive Eigentum Semantik. Darüber hinaus bietet die Fähigkeit recursive_timed_mutex
zu versuchen, Eigentum an einer recursive_timed_mutex
mit einem Timeout Anspruch über den try_lock_for
und try_lock_until
Methoden .Original:
In a manner similar to std::thread::recursive_mutex,
recursive_timed_mutex
provides exclusive, recursive ownership semantics. In addition, recursive_timed_mutex
provides the ability to attempt to claim ownership of a recursive_timed_mutex
with a timeout via the try_lock_for
and try_lock_until
methods.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Die
recursive_timed_mutex
Klasse ist nicht kopierbar .Original:
The
recursive_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.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten]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. |
[Bearbeiten]Member-Funktionen
konstruiert den Mutex (öffentliche Elementfunktion) | |
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) | |
versucht den Mutex zu sperren und kehrt zurück, wenn der Mutex nicht verfügbar ist (öffentliche Elementfunktion) | |
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) | |
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) | |
entsperrt den Mutex (öffentliche Elementfunktion) | |
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) |