#include <win-objects.h>
Definition at line 120 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 194 of file win-objects.cpp.
196 SetLastError(NO_ERROR);
197 m_handle = CreateEvent(NULL,p_manualreset ? TRUE : FALSE, p_initialstate ? TRUE : FALSE,NULL);
HANDLE win32_event::detach |
( |
| ) |
|
|
inline |
Definition at line 130 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 207 of file win-objects.cpp.
211 if (time == 0) time = 1;
212 }
else if (p_seconds < 0) {
t_int32 rint32(double p_val)
Definition at line 254 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 240 of file win-objects.cpp.
249 case WAIT_OBJECT_0 + 1:
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 219 of file win-objects.cpp.
220 SetLastError(NO_ERROR);
226 throw pfc::exception_bug_check();
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 201 of file win-objects.cpp.
203 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 136 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: