23 lines
440 B
C++
23 lines
440 B
C++
#ifndef HYDRATASKBARRIER
|
|
#define HYDRATASKBARRIER
|
|
|
|
#include "../engine/HydraObject.h"
|
|
#include <vector>
|
|
#include <mutex>
|
|
#include <thread>
|
|
|
|
class CLASS_DEFINE HydraTaskBarrier : public HydraObject
|
|
{
|
|
private:
|
|
|
|
|
|
protected:
|
|
public:
|
|
int reference_count = 0;
|
|
HydraID barrier_id = INVALID_HYDRA_ID;
|
|
std::vector<HydraID> task_ids;
|
|
bool waiting = false;
|
|
|
|
};
|
|
#endif /* HYDRATASKBARRIER */
|