std::condition_variable_any::~condition_variable_any
Da cppreference.com
< cpp | thread | condition variable any
![]() |
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_any(); |
(1) | (desde C++11) |
Destrói o objeto de std::condition_variable_any tipo
Original:
Destroys the object of type std::condition_variable_any
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.
Só é seguro para invocar o destruidor se todos os segmentos foram notificados. Não é necessário que eles tenham saído de suas funções respectivas espera: alguns segmentos podem ainda estar à espera de readquirir o bloqueio associado, ou pode estar à espera de ser programado para ser executado depois de readquirir-lo.
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.
O programador deve garantir que nenhum tópicos tentar esperar *this uma vez que o processo de destruição foi iniciado, especialmente quando os segmentos de espera estão chamando as funções de espera em um loop ou estão usando as sobrecargas das funções de espera que levam um predicado.
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.
[editar] Exceções
(Nenhum)
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.