acl/lib_fiber/cpp/include/fiber/wait_group.hpp
2022-08-01 21:57:07 +08:00

22 lines
280 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);
size_t wait(void);
private:
size_t count_;
fiber_tbox<unsigned long>* box_;
};
} // namespace acl