13 #ifndef __PROCESS_COUNT_DOWN_LATCH_HPP__ 14 #define __PROCESS_COUNT_DOWN_LATCH_HPP__ 31 size_t expected = count.load();
32 while (expected > 0) {
33 if (count.compare_exchange_strong(expected, expected - 1)) {
48 std::atomic<size_t> count;
54 #endif // __PROCESS_COUNT_DOWN_LATCH_HPP__ Definition: nothing.hpp:16
bool set(const T &_t)
Definition: future.hpp:827
CountDownLatch(size_t count=1)
Definition: count_down_latch.hpp:27
Future< Nothing > triggered()
Definition: count_down_latch.hpp:42
Definition: executor.hpp:48
Future< T > future() const
Definition: future.hpp:913
Definition: count_down_latch.hpp:24
void decrement()
Definition: count_down_latch.hpp:29