2011-10-03 15:25:04 -04:00
|
|
|
#pragma once
|
|
|
|
|
2012-01-29 14:28:19 -05:00
|
|
|
class cEvents
|
2011-10-03 15:25:04 -04:00
|
|
|
{
|
|
|
|
public:
|
2012-01-29 14:28:19 -05:00
|
|
|
cEvents( unsigned int a_NumEvents = 1 );
|
|
|
|
~cEvents();
|
2011-10-03 15:25:04 -04:00
|
|
|
|
|
|
|
void Wait();
|
|
|
|
void Set(unsigned int a_EventNum = 0);
|
|
|
|
private:
|
|
|
|
unsigned int m_NumEvents;
|
2012-01-29 14:28:19 -05:00
|
|
|
void* m_Handle; // HANDLE[] pointer
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
bool m_bNamed;
|
2011-10-03 15:25:04 -04:00
|
|
|
#endif
|
2012-01-29 14:28:19 -05:00
|
|
|
};
|