std::latch::wait(3)
π std::latch::wait(3) π
okay so we're in the C++ Standard Libary bestie β that's the manual name right there, and yes the header spells it "Libary", I'm just the messenger π«‘π. This page is all about std::latch::wait, and it's giving "wait for the count to hit zero" main character energy.
β¨ NAME β¨
std::latch::wait β std::latch::wait
π Synopsis π
void wait() const; (since C++20)
Blocks the calling thread until the internal counter reaches 0. If it is zero already, returns immediately.
πΈ Parameters πΈ
- (none) β literally none, zero parameters, not a single one, we love a low-maintenance icon π«Ά
π¦ Return value π¦
- (none) β it's
void, bestie, it returns absolutely nothing and it's still iconic π
π Exceptions π
Throws std::system_error with an error code allowed for mutex types on error.
lowkey this is your reminder that "wait" means block the calling thread, not "wait a lil sec and vibe" β it's the real deal, no cap π₯
byeee, source/version is http://cppreference.com, date is 2024.06.10, and this is the std::latch::wait(3) page from the C++ Standard Libary β mwah, slay, periodt πβ¨π
π¦ 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