std::condit...variable_any(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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)
  1. Constructs an object of type std::condition_variable_any.
  2. Copy constructor is deleted.

πŸŽ€ Parameters πŸŽ€

(none) β€” literally no parameters, not even a tiny one. 🫢


πŸ’… Exceptions πŸ’…

  • (1) May throw std::system_error with std::error_condition equal to std::errc::operation_not_permitted if the thread has no privilege to create a condition variable, std::errc::resource_unavailable_try_again if 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_again was wrong
    • Correct behavior: corrected

πŸ‘‘ 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