◐ Shell
clean mode source ↗

std::future_status - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<future>

enum class future_status { ready, timeout, deferred };

(dal C++11)

Specifies state of a future as returned by wait_for and wait_until functions of std::future and std::shared_future.

Constant

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Explanation
deferred the shared state contains a deferred function, so the result will be computed only when explicitly requested
ready the shared state is ready
timeout the shared state did not become ready before specified timeout duration has passed

Vedi anche

waits for the result, returns if it is not available for the specified timeout duration
(metodo pubblico) [modifica]
waits for the result, returns if it is not available for the specified timeout duration
(metodo pubblico) [modifica]

aspetta il risultato, restituisce se non è disponibile fino punto di tempo specificato è stato raggiunto

Original:

waits for the result, returns if it is not available until specified time point 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.


(metodo pubblico) [modifica]

aspetta il risultato, restituisce se non è disponibile fino punto di tempo specificato è stato raggiunto

Original:

waits for the result, returns if it is not available until specified time point 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.


(metodo pubblico) [modifica]