Namespaces
Variants

std::condition_variable:: condition_variable

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)
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
condition_variable ( ) ;
(1) (C++11부터)
condition_variable ( const condition_variable & ) = delete ;
(2) (C++11부터)
1) std::condition_variable 타입의 객체를 생성합니다.
2) 복사 생성자가 삭제되었습니다.

매개변수

(없음)

예외

1) 스레드가 조건 변수를 생성할 권한이 없는 경우 std::system_error std::error_condition std::errc::operation_not_permitted 인 상태로 발생시킬 수 있습니다. 메모리가 아닌 자원 제한으로 인해 이 초기화가 방해받는 경우 std::errc::resource_unavailable_try_again 이나 다른 구현 정의 값이 발생할 수 있습니다.

참고 항목

C 문서 for cnd_init