std::thread::operator=
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> thread& operator=( thread&& other ); |
(dal C++11) | |
Assegna lo stato di
other per *this usando la semantica si muovono.Original:
Assigns the state of
other to *this using move semantics.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.
Se
*this ha ancora un thread associato in esecuzione (ad esempio joinable() == true), std::terminate() si chiama.Original:
If
*this still has an associated running thread (i.e. joinable() == true), std::terminate() is called.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.
Parametri
| other | - | un altro oggetto thread per assegnare a questo oggetto thread
Original: another thread object to assign to this thread object 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
*this