std::condition_variable(3cxx)

🌸 NAME 🌸

okay so welcome to std::condition_variable from the 3cxx manual, bestie πŸ’…

std::condition_variable β€” condition_variable


✨ SYNOPSIS ✨

#include <condition_variable>

πŸŽ€ Public Types πŸŽ€

  • native_handle_type β€” the public typedef is exactly typedef __gthread_cond_t * native_handle_type. That’s the whole type moment, no cap.

πŸ’… Public Member Functions πŸ’…

  • condition_variable (const condition_variable &)=delete β€” copy constructor, deleted. It’s giving β€œno copies allowed,” periodt.
  • native_handle_type native_handle () β€” the signature hands back a native_handle_type; that’s the entire documented lore here.
  • void notify_all () noexcept β€” the all-notify one, and it’s marked noexcept.
  • void notify_one () noexcept β€” the one-notify one, also marked noexcept.
  • condition_variable & operator= (const condition_variable &)=delete β€” copy assignment, deleted. Same no-copy energy, iconic.
  • void wait (unique_lock< mutex > &__lock) β€” takes unique_lock< mutex > &__lock, no predicate in this one.
  • template<typename _Predicate > void wait (unique_lock< mutex > &__lock, _Predicate __p) β€” templated on _Predicate, takes the lock plus __p.
  • template<typename _Rep , typename _Period > cv_status wait_for (unique_lock< mutex > &__lock, const chrono::duration< _Rep, _Period > &__rtime) β€” templated on _Rep and _Period, takes the lock plus a chrono::duration, returns cv_status.
  • template<typename _Rep , typename _Period , typename _Predicate > bool wait_for (unique_lock< mutex > &__lock, const chrono::duration< _Rep, _Period > &__rtime, _Predicate __p) β€” templated on _Rep, _Period, and _Predicate, takes the lock, duration, and __p, returns bool.
  • template<typename _Clock , typename _Duration > cv_status wait_until (unique_lock< mutex > &__lock, const chrono::time_point< _Clock, _Duration > &__atime) β€” templated on _Clock and _Duration, takes the lock plus a chrono::time_point, returns cv_status.
  • template<typename _Clock , typename _Duration , typename _Predicate > bool wait_until (unique_lock< mutex > &__lock, const chrono::time_point< _Clock, _Duration > &__atime, _Predicate __p) β€” templated on _Clock, _Duration, and _Predicate, takes the lock, time point, and __p, returns bool.
  • template<typename _Duration > cv_status wait_until (unique_lock< mutex > &__lock, const chrono::time_point< system_clock, _Duration > &__atime) β€” templated on _Duration, takes the lock plus chrono::time_point< system_clock, _Duration >, returns cv_status.

🫢 Detailed Description 🫢

The detailed description on this page is literally just:

condition_variable

Minimalist. Mysterious. Main character energy. πŸ’œ


πŸ¦‹ Author πŸ¦‹

Author: Generated automatically by Doxygen for libstdc++ from the source code. So yes, the author is the machine β€” slay, I guess. 😭


πŸ’– Cute sign-off: source/version is libstdc++, and the footer tag is std::condition_variable(3cxx). There’s no date in the footer, so I’m not inventing one, bestie β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from