std::condition_variable_any(3cxx)
π NAME π
std::condition_variable_any β literally the whole name bestie, that's it, condition_variable_any π (yes the page is from std::condition_variable_any(3cxx), the C++ corner of the man-page universe, welcome)
β¨ SYNOPSIS β¨
okay so here's the full cast of characters, copy-pasted straight from the source because I would never mess with signatures, that's sacred π
π«Ά Public Member Functions π«Ά
condition_variable_any (const condition_variable_any &)=delete
void notify_all () noexcept
void notify_one () noexcept
condition_variable_any & operator= (const condition_variable_any &)=delete
template<typename _Lock > void wait (_Lock &__lock)
template<typename _Lock , typename _Predicate > void wait (_Lock &__lock, _Predicate __p)
template<class _Lock , class _Predicate > bool wait (_Lock &__lock, stop_token __stoken, _Predicate __p)
template<typename _Lock , typename _Rep , typename _Period > cv_status wait_for (_Lock &__lock, const chrono::duration< _Rep, _Period > &__rtime)
template<typename _Lock , typename _Rep , typename _Period , typename _Predicate > bool wait_for (_Lock &__lock, const chrono::duration< _Rep, _Period > &__rtime, _Predicate __p)
template<class _Lock , class _Rep , class _Period , class _Predicate > bool wait_for (_Lock &__lock, stop_token __stoken, const chrono::duration< _Rep, _Period > &__rel_time, _Predicate __p)
template<typename _Lock , typename _Clock , typename _Duration > cv_status wait_until (_Lock &__lock, const chrono::time_point< _Clock, _Duration > &__atime)
template<typename _Lock , typename _Clock , typename _Duration , typename _Predicate > bool wait_until (_Lock &__lock, const chrono::time_point< _Clock, _Duration > &__atime, _Predicate __p)
template<class _Lock , class _Clock , class _Duration , class _Predicate > bool wait_until (_Lock &__lock, stop_token __stoken, const chrono::time_point< _Clock, _Duration > &__abs_time, _Predicate __p)
let me walk you through the vibes π
condition_variable_any (const condition_variable_any &)=deleteβ the copy constructor? deleted. not invited. the door is shut, the velvet rope is up, she does not do duplicates π«void notify_all () noexceptβnotify_all,noexcept, zero drama, zero throws. everyone's getting the message, no cap π£οΈvoid notify_one () noexceptβ same energy but one.noexceptagain because she's consistent like that β¨condition_variable_any & operator= (const condition_variable_any &)=deleteβ and assignment is deleted too. no copying, no reassigning, we respect the boundary bestie πtemplate<typename _Lock > void wait (_Lock &__lock)β plainwait, takes your_Lockby reference, that's the whole thing, she's lowkey minimal πΈtemplate<typename _Lock , typename _Predicate > void wait (_Lock &__lock, _Predicate __p)βwaitbut now there's a_Predicate __pin the mix, returnsvoid, very demure πtemplate<class _Lock , class _Predicate > bool wait (_Lock &__lock, stop_token __stoken, _Predicate __p)β this one's got astop_token __stokenand a predicate and it returnsbool. main character overload fr π₯template<typename _Lock , typename _Rep , typename _Period > cv_status wait_for (_Lock &__lock, const chrono::duration< _Rep, _Period > &__rtime)βwait_forwith achrono::duration< _Rep, _Period > &__rtime, returnscv_statusβ³template<typename _Lock , typename _Rep , typename _Period , typename _Predicate > bool wait_for (_Lock &__lock, const chrono::duration< _Rep, _Period > &__rtime, _Predicate __p)β same duration situation, plus_Predicate __p, and this one hands you aboolπ¦template<class _Lock , class _Rep , class _Period , class _Predicate > bool wait_for (_Lock &__lock, stop_token __stoken, const chrono::duration< _Rep, _Period > &__rel_time, _Predicate __p)β the deluxewait_for:stop_token __stoken,const chrono::duration< _Rep, _Period > &__rel_time,_Predicate __p, returnsbool. it's giving full package πtemplate<typename _Lock , typename _Clock , typename _Duration > cv_status wait_until (_Lock &__lock, const chrono::time_point< _Clock, _Duration > &__atime)βwait_untilera, takesconst chrono::time_point< _Clock, _Duration > &__atime, returnscv_statusβtemplate<typename _Lock , typename _Clock , typename _Duration , typename _Predicate > bool wait_until (_Lock &__lock, const chrono::time_point< _Clock, _Duration > &__atime, _Predicate __p)β same time point, now with_Predicate __p, returnsboolπtemplate<class _Lock , class _Clock , class _Duration , class _Predicate > bool wait_until (_Lock &__lock, stop_token __stoken, const chrono::time_point< _Clock, _Duration > &__abs_time, _Predicate __p)β the big one:stop_token __stoken,const chrono::time_point< _Clock, _Duration > &__abs_time,_Predicate __p,boolreturn. iconic, ate, periodt π
π Detailed Description π
condition_variable_any
that's it. that's the detailed description. she said what she said π§
fr fr, the docs are being mysterious on purpose. iykyk π
Definition at line 241 of file condition_variable.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
like, nobody wrote this with their hands β Doxygen did it for libstdc++, straight from the source code, and honestly? respect the automation π
and that's the page bestie!! this gem comes to you courtesy of libstdc++, dated Sat Mar 19 2022 β go forth and synchronize responsibly, mwah ππ¦β¨
π¦ where this page comes from
- ubuntu jammy: libstdc++-12-doc 12-20220319-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms