|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
latch::try_wait | ||||
| Constants | ||||
bool try_wait()constnoexcept; | (since C++20) | |
Returnstrue only if the internal counter has reached zero. This function may spuriously returnfalse with very low probability even if the internal counter has reached zero.
(none)
With very low probabilityfalse, otherwisecnt==0, wherecnt is the value of the internal counter.
The reason why a spurious result is permitted is to allow implementations to use a memory order more relaxed thanstd::memory_order_seq_cst.