std::condition_variable::~condition_variable
Aus cppreference.com
< cpp | thread | condition variable
![]() | 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. |
~condition_variable(); | (1) | (seit C++11) |
Zerstört das Objekt vom Typ std::condition_variable
Original:
Destroys the object of type std::condition_variable
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.
Es ist nur sicher, den Destruktor aufzurufen, wenn alle Threads nicht angemeldet worden. Es ist nicht erforderlich, dass sie ihre jeweiligen verlassen Wartefunktionen: einige Fäden können immer noch warten, um die zugeordnete Sperre erneut, sein kann oder darauf wartet, soll es nach Wiedererlangen ausgeführt werden .
Original:
It is only safe to invoke the destructor if all threads have been notified. It is not required that they have exited their respective wait functions: some threads may still be waiting to reacquire the associated lock, or may be waiting to be scheduled to run after reacquiring it.
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.
Der Programmierer muss sicherstellen, dass keine Threads auf *this warten, wenn der Destruktor gestartet wurde versucht, vor allem, wenn die wartenden Threads Aufruf der wait-Funktionen in einer Schleife oder mit Überladungen der Wartezeit Funktionen, die ein Prädikat zu nehmen .
Original:
The programmer must ensure that no threads attempt to wait on *this once the destructor has been started, especially when the waiting threads are calling the wait functions in a loop or are using the overloads of the wait functions that take a predicate.
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]Ausnahmen
(None)
Original:
(none)
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.