std::shared_future::wait_until
De cppreference.com
< cpp | thread | shared future
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
template< class Clock, class Duration > std::future_status wait_until( const std::chrono::time_point<Clock,Duration>& timeout_time ); |
||
Espera a que el resultado esté disponible. Bloquea hasta
timeout_time
especificado se ha alcanzado o el resultado esté disponible, lo que ocurra primero. Devuelve valor identifica el estado del resultado. Puede bloquear por más de timeout_time
hasta que se haya alcanzado .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.
Contenido |
[editar] Parámetros
timeout_time | - | punto máximo de tiempo para bloquear hasta
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] Excepciones
(Ninguno)
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] Ejemplo
Esta sección está incompleta Razón: sin ejemplo |
[editar] Ver también
Espera a que el resultado esté disponible. (función miembro pública) | |
Espera el resultado, regresa si no está disponible durante el tiempo de espera especificado. (función miembro pública) |