2017-01-06 07:22:35 +01:00
|
|
|
|
#ifndef WAITHANDLELIST_H
|
|
|
|
|
|
#define WAITHANDLELIST_H
|
|
|
|
|
|
|
2017-08-23 08:10:01 +02:00
|
|
|
|
#ifdef _WIN32
|
2017-01-06 07:22:35 +01:00
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
class Win32Event;
|
|
|
|
|
|
|
|
|
|
|
|
using WaitResultValue = DWORD;
|
|
|
|
|
|
|
|
|
|
|
|
class WaitHandleList {
|
|
|
|
|
|
public:
|
|
|
|
|
|
WaitHandleList();
|
|
|
|
|
|
~WaitHandleList();
|
|
|
|
|
|
|
|
|
|
|
|
WaitResultValue add(HANDLE h);
|
|
|
|
|
|
WaitResultValue add(Win32Event &e);
|
|
|
|
|
|
DWORD count() const;
|
|
|
|
|
|
void clear();
|
|
|
|
|
|
operator const HANDLE*() const;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
std::vector<HANDLE> m_waitHandles;
|
|
|
|
|
|
};
|
2017-08-23 08:10:01 +02:00
|
|
|
|
#endif // _WIN32
|
2017-01-06 07:22:35 +01:00
|
|
|
|
|
|
|
|
|
|
#endif // WAITHANDLELIST_H
|