std::thread::detach - cppreference.com
Da cppreference.com.
|
|
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. |
<metanoindex/>
<tbody> </tbody>
|
|
(dal C++11) | |
Separa il thread di esecuzione dall'oggetto filo, consente l'esecuzione di continuare in modo indipendente. Le risorse stanziate saranno liberati una volta che il thread.
Original:
Separates the thread of execution from the thread object, allowing execution to continue independently. Any allocated resources will be freed once the thread exits.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dopo aver chiamato detach, le seguenti condizioni terrà:
Original:
After calling detach, the following conditions will hold:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
*thisnon possiede più alcun filoOriginal:
*thisno longer owns any threadThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.joinable() == falseget_id() == std::thread::id()
Parametri
(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.
Valore di ritorno
(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.
Eccezioni
std::system_error se joinable() == false o si verifica un errore.
Original:
std::system_error if joinable() == false or an error occurs.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Esempio
Vedi anche
attesa di un thread per terminare la sua esecuzione Original: waits for a thread to finish its execution The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
verifica se il filo è unibili, cioè potenzialmente in esecuzione nel contesto parallelo Original: checks whether the thread is joinable, i.e. potentially running in parallel context The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |