std::condition_variable_any::~condition_variable_any
Da cppreference.com.
< cpp | thread | condition variable any
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
~condition_variable_any(); | (1) | (dal C++11) |
Distrugge l'oggetto di 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.
E 'sicuro solo per richiamare il distruttore se tutti i fili sono stati notificati. Non è necessario che siano uscite le loro funzioni rispettive di attesa: alcuni fili potrebbe essere ancora in attesa di riacquisire il blocco associato, o può essere in attesa di essere programmato per attivarsi dopo riacquistare la.
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.
Il programmatore deve assicurarsi che nessun thread tenta di aspettare *this una volta che il distruttore è stato avviato, in particolare quando i thread in attesa stanno chiamando le funzioni di attesa in un ciclo o si utilizza gli overload delle funzioni di attesa che accettano un predicato.
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.
[modifica]Eccezioni
(Nessuno)
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.