Espacios de nombres
Variantes
Acciones

std::promise::get_future

De cppreference.com
< cpp‎ | thread‎ | promise

 
 
Tema Biblioteca de ayuda
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 espacio de nombres
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)
Exclusión mutua
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)
Gestión de bloqueos 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)(C++11)
Las variables de condición
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)
(C++11)
 
std::promise
Las funciones miembro
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.
Conseguir el 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.
promise::get_future
Ajuste del resultado
Original:
Setting the result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
std::future<R> get_future();
(desde C++11)
Devuelve un objeto futuro asociado con el mismo estado que comparte como *this .
Original:
Returns a future object associated with 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.
Excepción si *this no ha estado compartido o get_future ya se ha llamado .
Original:
Exception is thrown if *this has no shared state or get_future has already been called.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Parámetros

(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] Valor de retorno

A futuro se refiere al estado compartido de *this
Original:
A future referring to the shared state of *this
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Excepciones

std::future_error en las siguientes condiciones:
Original:
std::future_error on the following conditions:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • *this no tiene un estado compartido. La categoría de error se establece en 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.
  • get_future() ya se ha llamado a una promesa con el mismo estado que comparte como *this. La categoría de error se establece en future_already_retrieved .
    Original:
    get_future() has already been called on a promise with the same shared state as *this. 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.