C++ common classes
General purpose classes for use across projects (Apache license)
|
Cross platform event synchronization class. More...
#include <CXPlatEvent.h>
Public Member Functions | |
CXPlatEvent (BOOL bManualReset=FALSE) | |
Constructor. | |
~CXPlatEvent () | |
Destructor. | |
int | Lock (DWORD dwWait=INFINITE) |
Tries to obtain access. | |
void | SetEvent () |
Set the event. | |
void | ResetEvent () |
Reset event to non-signalled. | |
BOOL | WasCreatedSuccessfully () |
Was the event created successfully. | |
Protected Attributes | |
BOOL | bEventCreated |
BOOL | bManualReset |
pthread_cond_t | m_csHandle |
sem_t | ptSem |
int | iSetCount |
Cross platform event synchronization class.
Definition at line 28 of file CXPlatEvent.h.
CXPlatEvent::CXPlatEvent | ( | BOOL | bManualReset = FALSE | ) |
Constructor.
Definition at line 32 of file CXPlatEvent.cpp.
int CXPlatEvent::Lock | ( | DWORD | dwWait = INFINITE | ) |
Tries to obtain access.
Definition at line 92 of file CXPlatEvent.cpp.
Reset event to non-signalled.
Definition at line 70 of file CXPlatEvent.cpp.
Set the event.
Definition at line 121 of file CXPlatEvent.cpp.
Was the event created successfully.
Definition at line 139 of file CXPlatEvent.cpp.
BOOL CXPlatEvent::bEventCreated [protected] |
Definition at line 45 of file CXPlatEvent.h.
BOOL CXPlatEvent::bManualReset [protected] |
Definition at line 46 of file CXPlatEvent.h.
int CXPlatEvent::iSetCount [protected] |
Definition at line 58 of file CXPlatEvent.h.
pthread_cond_t CXPlatEvent::m_csHandle [protected] |
Definition at line 51 of file CXPlatEvent.h.
sem_t CXPlatEvent::ptSem [protected] |
Definition at line 56 of file CXPlatEvent.h.