std::experi...:count_down(3)
π std::experimental::latch::count_down π
okay so bestie, vibe check: this is the manual page std::experi...:count_down(3) from the C++ Standard Libary manual β yes, thatβs the exact manual name on the page, typo and all πβ¨.
π NAME π
std::experimental::latch::count_downβstd::experimental::latch::count_down
β¨ Synopsis β¨
void count_down( ptrdiff_t n = 1 ); (1) (concurrency TS)
It atomically decrements the internal counter by n without blocking the caller. Slay, but make it atomic π
.
β οΈ If n is greater than the value of the internal counter or is negative, the behavior is undefined. Thatβs the dangerous little gremlin clause, bestie β respect it π«Ά.
This operation synchronizes with all calls that block on this latch and all is_ready calls on this latch that returns true. yep, thatβs the exact sync tea ββ¨.
πΈ Parameters πΈ
nβ the value by which the internal counter is decreased.
π¦ Return value π¦
(none)β literally nothing comes back, bestie. No return value, no cap.
π Exceptions π
Throws nothing. not even a tiny dramatic throw π.
source: http://cppreference.com Β· date/version stamp: 2024.06.10 Β· page: std::experi...:count_down(3) β bye bestie, mwah ππ
π¦ 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