Namespaces
Variants

std::condition_variable_any:: condition_variable_any

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

목차

매개변수

(없음)

예외

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

결함 보고서

다음의 동작 변경 결함 보고서들은 이전에 발표된 C++ 표준에 소급 적용되었습니다.

DR 적용 대상 게시된 동작 올바른 동작
LWG 2092 C++11 resource_unavailable_try_again 에 대한 오류 조건이 잘못됨 수정됨

참고 항목

C 문서 for cnd_init