eventPass.h 368 Bytes
Newer Older
Hurstel's avatar
Hurstel committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef EVENT_H
#define EVENT_H

#include <thread>

class EventPass{
public:
	static unsigned long int eventPass();
	static void endEventPass(unsigned long int key);

	static void waitToEnd();

protected:
    static std::thread* s_eventThread;

	static unsigned long int s_waitEvSrcEnd;

	static unsigned long int s_counter;

	static bool s_run;
};

#endif // EVENT_H