Namespaces
Variants

std:: future_status

From cppreference.net
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
future_status
(C++11)
Safe reclamation
Hazard pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11) (deprecated in C++20)
(C++11) (deprecated in C++20)
Memory ordering
(C++11) (deprecated in C++26)
Free functions for atomic operations
Free functions for atomic flags
헤더 파일에 정의됨 <future>
enum class future_status {

ready,
timeout,
deferred

} ;
(C++11부터)

wait_for wait_until 함수에 의해 반환되는 future의 상태를 지정합니다. 이 함수들은 std::future std::shared_future 의 멤버 함수입니다.

상수

열거자 의미
deferred 공유 상태가 지연된 함수를 포함하므로, 결과는 명시적으로 요청될 때만 계산됨
ready 공유 상태가 준비됨
timeout 지정된 타임아웃 기간이 경과하기 전에 공유 상태가 준비되지 않음

참고 항목

결과를 기다리며, 지정된 시간 동안 사용 가능하지 않으면 반환합니다
( std::future<T> 의 public 멤버 함수)
결과를 기다리며, 지정된 시간 동안 사용 가능하지 않으면 반환합니다
( std::shared_future<T> 의 public 멤버 함수)
결과를 기다리며, 지정된 시간 점에 도달할 때까지 사용 가능하지 않으면 반환합니다
( std::future<T> 의 public 멤버 함수)
결과를 기다리며, 지정된 시간 점에 도달할 때까지 사용 가능하지 않으면 반환합니다
( std::shared_future<T> 의 public 멤버 함수)