|
Boost : |
Subject: Re: [boost] [thread] countdown_latch
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2013-05-09 02:33:21
Just came across
http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2013/n3600.html
C++ Latches and Barriers
Synopsis
The synopsis is as follows.
class latch {
public:
explicit latch(size_t count);
~latch();
void count_down();
void wait();
bool try_wait();
void count_down_and_wait();
};
class barrier {
public:
explicit barrier(size_t num_threads) throw (std::invalid_argument);
explicit barrier(size_t num_threads, std::function<void()> f) throw
(std::invalid_argument);
~barrier();
void count_down_and_wait();
void reset(size_t num_threads);
void reset(function f);
};
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk