Espacios de nombres
Variantes
Acciones

std::shared_future::wait_until

De cppreference.com
 
 
Biblioteca de apoyo de concurrencia
Hilos
(C++11)
(C++20)
Espacio de nombres this_thread
(C++11)
(C++11)
(C++11)
Cancelación cooperativa
Exclusión mutua
(C++11)
Gestión genérica de bloqueo
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Variables de condición
(C++11)
Semáforos
Pestillos y barreras
(C++20)
(C++20)
Futuros
(C++11)
(C++11)
(C++11)
(C++11)
Recuperación segura
(C++26)
Punteros de riesgo
Tipos atómicos
(C++11)
(C++20)
Inicialización de tipos atómicos
(C++11)(en desuso en C++20)
(C++11)(en desuso en C++20)
Orden de memoria
Funciones independientes para operaciones atómicas
Funciones independientes para indicadores atómicos
 
 
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.

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.

[editar] Ejemplo

[editar] Ver también

Espera a que el resultado esté disponible.
(función miembro pública) [editar]
Espera el resultado, regresa si no está disponible durante el tiempo de espera especificado.
(función miembro pública) [editar]