std::experi...own_and_wait(3)

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

πŸ’– NAME πŸ’–

okay so this is the C++ Standard Libary man page, section (3), for std::experimental::latch::count_down_and_wait β€” and yes bestie, the NAME section is literally saying the same thing twice: std::experimental::latch::count_down_and_wait β€” std::experimental::latch::count_down_and_wait. iconic.

✨ Synopsis ✨

void count_down_and_wait(); (1) (concurrency TS)

Atomically decrements the internal counter by 1 and (if necessary) blocks the calling thread until the counter reaches zero.

🚨 The behavior is undefined if the internal counter is already zero. not "oops try again" undefined β€” actually undefined, so do not do that, fr fr.

This operation synchronizes with all calls that block on this latch and all is_ready calls on this latch that returns true.

πŸŽ€ Parameters πŸŽ€

(none) β€” she takes no arguments, periodt.

🌸 Return value 🌸

(none) β€” no return value, she's just doing the thing.

πŸ¦‹ Exceptions πŸ¦‹

Throws nothing. literally nothing.


okay bye bestie πŸ’– source: http://cppreference.com β€’ date: 2024.06.10 β€’ page: std::experi...own_and_wait(3)

πŸ“¦ where this page comes from