Switching to linux for development of pglab.
Switched from qmake to cmake. Code changes to make it compile.
This commit is contained in:
parent
dd9906dbd8
commit
04723a289b
142 changed files with 124 additions and 83 deletions
28
pglab/waithandlelist.h
Normal file
28
pglab/waithandlelist.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef WAITHANDLELIST_H
|
||||
#define WAITHANDLELIST_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#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;
|
||||
};
|
||||
#endif // _WIN32
|
||||
|
||||
#endif // WAITHANDLELIST_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue