2015-11-06 11:42:27 +00:00
|
|
|
#pragma once
|
2017-09-06 05:38:25 +00:00
|
|
|
#include "stdtypes.h"
|
2015-11-06 11:42:27 +00:00
|
|
|
|
|
|
|
class SyncEvent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum { INFINITE_TIMEOUT = 0xFFFFFFFF };
|
|
|
|
|
|
|
|
SyncEvent(bool bManualReset = true);
|
|
|
|
~SyncEvent(void);
|
|
|
|
|
|
|
|
void Trigger (void);
|
|
|
|
bool IsTriggered (int32_t iWaitTime = 0);
|
|
|
|
void Reset();
|
|
|
|
void * GetHandle();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
SyncEvent(const SyncEvent&); // Disable copy constructor
|
|
|
|
SyncEvent& operator=(const SyncEvent&); // Disable assignment
|
|
|
|
|
|
|
|
void * m_Event;
|
2016-04-28 07:29:27 +00:00
|
|
|
#ifndef _WIN32
|
|
|
|
void * m_cond;
|
|
|
|
bool m_signalled;
|
|
|
|
#endif
|
2021-03-16 23:01:33 +00:00
|
|
|
};
|