Espaços nominais
Variantes
Acções

std::shared_future::wait_until

Da cppreference.com

 
 
Biblioteca de suporte a discussão
Threads
Original:
Threads
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
this_thread namespace
Original:
this_thread namespace
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
Exclusão mútua
Original:
Mutual exclusion
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Gestão de bloqueio genérico
Original:
Generic lock management
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Variáveis ​​de condição
Original:
Condition variables
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Futuros
Original:
Futures
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
 
std::shared_future
Funções de membro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
shared_future::shared_future
shared_future::~shared_future
shared_future::operator=
Obtendo o resultado
Original:
Getting the result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
shared_future::get
Estado
Original:
State
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
shared_future::valid
shared_future::wait
shared_future::wait_for
shared_future::wait_until
 
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.

Í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.

[editar]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)[edit]
waits for the result, returns if it is not available for the specified timeout duration
(função pública membro)[edit]
close