FARGOS/VISTA Object Management Environment Core
..
|
I/O-specific event. More...
#include <OMEioEvents.h>
Public Types | |
enum | OMEfileType { file, socket, pipe, process, genericEvent } |
enum | OMEselectMode { selectRead, selectWrite, eventObj, notUsed } |
![]() | |
enum | OMEeventType { timerExpired, ioPossible, childDeath, win32Event } |
Public Member Functions | |
OMEioEvent (OMEfileType t, OMEselectMode m, uint64_t handle, OMEeventCallbackFP func, OMEthread *thread=nullptr, void *extra=nullptr) | |
~OMEioEvent () | |
void | deselectIOevent () |
![]() | |
OMEevent (OMEeventType t, uint32_t h, OMEeventCallbackFP func, OMEthread *thread=nullptr, void *extra=nullptr) | |
virtual | ~OMEevent () |
bool | operator== (const OMEevent &arg) const |
Event equality. More... | |
bool | operator!= (const OMEevent &arg) const |
Event inequality. More... | |
bool | operator< (const OMEevent &arg) const |
Event ordering. More... | |
bool | postEvent () |
Post event and call callback function. More... | |
bool | isPosted () const |
Check if event has been posted. More... | |
Static Public Member Functions | |
static void | selectIOevent (OMEioEvent *event) |
Public Attributes | |
OMEioEvent * | nextEvent |
int | tableIndex |
OMEfileType | fileType |
OMEselectMode | selectMode |
![]() | |
uint64_t | eventHandle |
Event-specific handle. More... | |
OMEeventCallbackFP | callback |
Function to service event. More... | |
OMEthread * | waitingThread |
OMEthread to signal. More... | |
void * | extraData |
Any event-specific data. More... | |
OMEeventType | eventType |
Fundamental event type. More... | |
I/O-specific event.
OMEioEvent::OMEioEvent | ( | OMEioEvent::OMEfileType | t, |
OMEselectMode | m, | ||
uint64_t | handle, | ||
OMEeventCallbackFP | func, | ||
OMEthread * | thread = nullptr , |
||
void * | extra = nullptr |
||
) |
References fileType, nextEvent, selectIOevent(), and selectMode.
|
inline |
void OMEioEvent::deselectIOevent | ( | ) |
|
static |
References OME_CRITICAL_SECTION_EVENT_TABLE, and OMEstartCriticalSection().
Referenced by OMEioEvent().
OMEfileType OMEioEvent::fileType |
Referenced by OMEioEvent().
OMEioEvent* OMEioEvent::nextEvent |
Referenced by deselectIOevent(), and OMEioEvent().
OMEselectMode OMEioEvent::selectMode |
Referenced by deselectIOevent(), and OMEioEvent().
int OMEioEvent::tableIndex |
Referenced by deselectIOevent().
![]() | Generated: Tue Jul 28 2020 16:03:27
Support Information |