acl/lib_fiber/cpp/include/fiber/wait_group.hpp

22 lines
278 B
C++

#pragma once
namespace acl {
template<typename T> class fiber_tbox;
class wait_group {
public:
wait_group(void);
~wait_group(void);
void add(size_t n);
void done(void);
void wait(void);
private:
size_t count_;
fiber_tbox<unsigned long>* box_;
};
} // namespace acl