std::packaged_task::get_future
Da cppreference.com
< cpp | thread | packaged task
![]() | 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. |
std::future<R> get_future(); | (desde C++11) | |
Retorna uma
future
que compartilha o mesmo estado compartilhado como *this.Original:
Returns a
future
which shares the same shared state as *this.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.
get_future
pode ser chamado apenas uma vez para cada packaged_task
.Original:
get_future
can be called only once for each packaged_task
.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]Parâmetros
(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.
[editar]Valor de retorno
Um futuro que compartilha o mesmo estado compartilhado como *this.
Original:
A future which shares the same shared state as *this.
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
std::future_error sobre as condições de erro seguintes:
Original:
std::future_error on the following error conditions:
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 estado compartilhado já foi recuperada através de uma chamada para
get_future
. A categoria de erro é definido para future_already_retrieved.Original:The shared state has already been retrieved via a call toget_future
. The error category is set to future_already_retrieved.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - *this não tem estado compartilhado. A categoria de erro é definido para no_state.Original:*this has no shared state. The error category is set to no_state.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.