#include <win-objects.h>
Definition at line 123 of file win-objects.h.
win32_event::win32_event |
( |
| ) |
|
|
inline |
win32_event::~win32_event |
( |
| ) |
|
|
inline |
void win32_event::create |
( |
bool |
p_manualreset, |
|
|
bool |
p_initialstate |
|
) |
| |
Definition at line 199 of file win-objects.cpp.
201 SetLastError(NO_ERROR);
202 m_handle =
CreateEvent(NULL,p_manualreset ? TRUE : FALSE, p_initialstate ? TRUE : FALSE,NULL);
HANDLE CreateEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, LPCTSTR lpName)
HANDLE win32_event::detach |
( |
| ) |
|
|
inline |
Definition at line 133 of file win-objects.h.
t_type replace_t(t_type &p_var, const t_newval &p_newval)
typedef HANDLE(WINAPI *pPowerCreateRequest_t)(__in void *Context)
DWORD win32_event::g_calculate_wait_time |
( |
double |
p_seconds | ) |
|
|
static |
Definition at line 212 of file win-objects.cpp.
216 if (time == 0) time = 1;
217 }
else if (p_seconds < 0) {
t_int32 rint32(double p_val)
Definition at line 259 of file win-objects.cpp.
HANDLE get_handle() const
static int g_twoEventWait(win32_event &ev1, win32_event &ev2, double timeout)
int win32_event::g_twoEventWait |
( |
HANDLE |
ev1, |
|
|
HANDLE |
ev2, |
|
|
double |
timeout |
|
) |
| |
|
static |
Definition at line 245 of file win-objects.cpp.
254 case WAIT_OBJECT_0 + 1:
DWORD WaitForMultipleObjects(DWORD nCount, const HANDLE *lpHandles, BOOL bWaitAll, DWORD dwMilliseconds)
typedef HANDLE(WINAPI *pPowerCreateRequest_t)(__in void *Context)
static DWORD g_calculate_wait_time(double p_seconds)
bool win32_event::g_wait_for |
( |
HANDLE |
p_event, |
|
|
double |
p_timeout_seconds |
|
) |
| |
|
static |
Returns true when signaled, false on timeout.
Definition at line 224 of file win-objects.cpp.
225 SetLastError(NO_ERROR);
231 throw pfc::exception_bug_check();
DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
static DWORD g_calculate_wait_time(double p_seconds)
HANDLE win32_event::get |
( |
| ) |
const |
|
inline |
HANDLE win32_event::get_handle |
( |
| ) |
const |
|
inline |
bool win32_event::is_valid |
( |
| ) |
const |
|
inline |
void win32_event::release |
( |
| ) |
|
Definition at line 206 of file win-objects.cpp.
208 if (temp != NULL) CloseHandle(temp);
typedef HANDLE(WINAPI *pPowerCreateRequest_t)(__in void *Context)
void win32_event::set |
( |
HANDLE |
p_handle | ) |
|
|
inline |
void win32_event::set_state |
( |
bool |
p_state | ) |
|
bool win32_event::wait_for |
( |
double |
p_timeout_seconds | ) |
|
|
inline |
Returns true when signaled, false on timeout.
Definition at line 139 of file win-objects.h.
static bool g_wait_for(HANDLE p_event, double p_timeout_seconds)
Returns true when signaled, false on timeout.
The documentation for this class was generated from the following files: