std::condition_variable::~condition_variable
De 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) | (depuis C++11) |
Détruit l'objet de std::condition_variable type
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.
Il n'est sûr que d'invoquer le destructeur si tous les threads ont été notifiés. Il n'est pas nécessaire qu'ils aient quitté leurs fonctions respectives d'attente: certains threads peuvent toujours être en attente de réacquérir le verrou associé, ou peut-être en attente d'être planifiée pour s'exécuter après la réacquisition .
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.
Le programmeur doit s'assurer qu'aucun threads tentent d'attendre sur *this fois le destructeur a été lancée, en particulier lorsque les threads en attente sont en appelant les fonctions d'attente dans une boucle ou utilisez les surcharges des fonctions d'attente qui prennent un prédicat .
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.
[modifier]Exceptions
(Aucun)
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.