std::shared_future::wait_until
Da cppreference.com
< cpp | thread | shared future
![]() | 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. |
template<class Clock, class Duration > std::future_status wait_until(conststd::chrono::time_point<Clock,Duration>& timeout_time ); | ||
Aguarda o resultado se torne disponível. Blocos até
timeout_time
especificado foi alcançado ou o resultado se torna disponível, o que ocorrer primeiro. Valor retorna identifica o estado do resultado. Podem bloquear por mais de até timeout_time
foi atingido.Original:
Waits for the result to become available. Blocks until specified
timeout_time
has been reached or the result becomes available, whichever comes first. Returns value identifies the state of the result. May block for longer than until timeout_time
has been reached.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.
Índice |
[editar]Parâmetros
timeout_time | - | ponto de tempo máximo para bloquear até Original: maximum time point to block until The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar]Valor de retorno
Constant | Explanation |
---|---|
future_status::deferred | The function to calculate the result has not been started yet |
future_status::ready | The result is ready |
future_status::timeout | The timeout has expired |
[editar]Exceções
(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]Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar]Veja também
aguarda o resultado de se tornarem disponíveis Original: waits for the result to become available The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
waits for the result, returns if it is not available for the specified timeout duration (função pública membro) |