std::condit...variable_any(3)
π NAME π
std::condition_variable_any::condition_variable_any β this is the constructor page for std::condition_variable_any, bestie. The original NAME line is literally std::condition_variable_any::condition_variable_any - std::condition_variable_any::condition_variable_any, and we are keeping that exact energy. It lives in the C++ Standard Library manual as std::condit...variable_any(3). β¨
πΈ Synopsis πΈ
Two constructor situations, both since C++11, no cap:
condition_variable_any(); (1)
(since C++11)
condition_variable_any( const condition_variable_any& ) = delete; (2)
(since C++11)
- Constructs an object of type
std::condition_variable_any. - Copy constructor is deleted.
π Parameters π
(none) β literally no parameters, not even a tiny one. π«Ά
π Exceptions π
(1)May throwstd::system_errorwithstd::error_conditionequal tostd::errc::operation_not_permittedif the thread has no privilege to create a condition variable,std::errc::resource_unavailable_try_againif a non-memory resource limitation prevents this initialization, or another implementation-defined value.
heads up bestie: constructor (1) can throw, so do not act surprised if your thread lacks privileges or the system hits some non-memory resource limit. π
π«Ά Defect reports π«Ά
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
- DR:
LWG 2092- Applied to:
C++11 - Behavior as published: the error condition for
resource_unavailable_try_againwas wrong - Correct behavior: corrected
- Applied to:
π See also π
- C documentation for
cnd_init
thatβs the whole page, babe π«Ά source/version/date vibes: http://cppreference.com, 2024.06.10, and the manual tag std::condit...variable_any(3). mwah π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms