std::thread::operator=
De cppreference.com
|
|
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. |
<metanoindex/>
<tbody> </tbody> thread& operator=( thread&& other ); |
(desde C++11) | |
Atribui o estado de
other para *this usando semântica mover.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 ainda tem um segmento de corrida a ele associada (ie joinable() == true), std::terminate() é chamado.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.
Parâmetros
| other | - | outro objeto de discussão para atribuir a este objeto de discussão
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. |
Valor de retorno
*this