![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cSysEvent.h>
Public Member Functions | |
cSysEvent () noexcept | |
~cSysEvent () | |
bool | isValidEvent () const noexcept |
bool | CreateEventX (_SECURITY_ATTRIBUTES *lpEventAttributes=nullptr, bool bManualReset=false, bool bInitialState=false, const FILECHAR_t *lpName=nullptr) |
bool | SetEvent () |
bool | ResetEvent () |
bool | PulseEvent () |
HRESULT | WaitForSingleObject (TIMESYSD_t dwMilliseconds) |
UNITTEST2_PREDEF (cSysEvent) | |
Like MFC class CEvent used for multi thread synchronization. similar to Semaphore/Mutex.
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
Sets the state of the event to signaled (available), releases any waiting threads, and resets it to nonsignaled (unavailable) automatically.
|
inline |
Sets the state of the event to non-signaled until explicitly set to signaled by the SetEvent member function. This causes all threads wishing to access this event to wait. This member function is not used by automatic events. (!bManualReset)
|
inline |
Sets the state of the event to signaled, releasing any/all waiting threads.
GrayLib::cSysEvent::UNITTEST2_PREDEF | ( | cSysEvent | ) |
HRESULT GrayLib::cSysEvent::WaitForSingleObject | ( | TIMESYSD_t | dwMilliseconds | ) |
wait for the event to be signaled. dwMilliseconds = cTimeSys::k_INF = wait forever.