Go to the documentation of this file.
2 #define _OME_EVENT_H "$Id: OMEevent.h 345 2020-05-21 01:03:07Z geoff $"
13 typedef int (*OMEwin32MessageLoopFP)();
40 OMEthread *thread =
nullptr,
void *extra =
nullptr) {
bool(* OMEeventCallbackFP)(class OMEevent *, OMEthread *)
Definition: OMEevent.h:16
time_t OMEpostTimerEvent(time_t currentTime=0)
OMEevent(OMEeventType t, uint32_t h, OMEeventCallbackFP func, OMEthread *thread=nullptr, void *extra=nullptr)
Definition: OMEevent.h:39
OMEevent * OMEeventP
Definition: OMEevent.h:91
OMEeventCallbackFP callback
Function to service event.
Definition: OMEevent.h:31
@ timerExpired
elapsed time timer
Definition: OMEevent.h:25
SMV_StandaloneNumeric< uint32_t > OMEdebugFlag("debugFlag")
OMEeventType eventType
Fundamental event type.
Definition: OMEevent.h:34
int OMEexecuteOIL2threads(const uint_fast32_t count)
Definition: OMEexecQueue.cpp:566
int OMEmainLoop(uint_fast32_t methodLimit)
FARGOS/VISTA Object Mangement Environment main loop. Invokes OMEdoWork(). Upon return,...
Definition: OMEevent.cpp:243
void OMEstopLoiterThreads()
Definition: OMEexecQueue.cpp:469
uint_fast32_t OMEwaitForThreadsToStop(uint_fast32_t maxWaitTime)
Request loiter threads to terminate and wait for them to terminate.
Definition: OMEexecQueue.cpp:485
static STREAMTYPE & outputCounters(STREAMTYPE &o)
Write a counter's value to an output stream.
Definition: OMEdebugInfo.h:108
bool isPosted() const
Check if event has been posted.
Definition: OMEevent.h:88
int OMEwaitForIO(uint_fast32_t delay)
Definition: OMEioEvents.cpp:395
bool operator!=(const OMEevent &arg) const
Event inequality.
Definition: OMEevent.h:59
@ win32Event
Microsoft Windows-specific event.
Definition: OMEevent.h:28
#define LOG_COUT(lvl)
Convenience macro that uses LOG_INTO() to conditionally log a message to standard output.
Definition: logging_api.hpp:3007
#define OMEdebugProfileCounters
Definition: OMEdebugInfo.h:28
void OMEpostEvent(OMEevent::OMEeventType t, uint64_t handle, uint64_t result)
Definition: OMEevent.cpp:92
virtual ~OMEevent()
Definition: OMEevent.h:49
const char srcID[]
Definition: catSym.c:17
bool posted
Definition: OMEevent.h:36
@ childDeath
child process terminated
Definition: OMEevent.h:27
uint64_t eventHandle
Event-specific handle.
Definition: OMEevent.h:30
time_t OMEnextEventTime(time_t fromTime)
Definition: OMEevent.cpp:129
void * extraData
Any event-specific data.
Definition: OMEevent.h:33
OMEeventType
Definition: OMEevent.h:24
OMEthread * waitingThread
OMEthread to signal.
Definition: OMEevent.h:32
int OMEsendShutdown()
Definition: OMEcreate.cpp:136
#define OME_EXPECT_TRUE(expr)
Annotation macro for conditional expression expected to be true.
Definition: compiler_hints.h:541
@ ioPossible
data available/can be written
Definition: OMEevent.h:26
int OMEclearEventQueue(OMEevent::OMEeventType eventType)
Definition: OMEevent.cpp:65
SMV_StandaloneNumeric< uint32_t > OMEstopFlag("stopFlag")
External flag used to trigger stop of a FARGOS/VISTA Object Management Environment.
const char srcID[] OME_USED
Definition: tick_time.cpp:24
time_t OMEpostTimeEvents(time_t currentTime)
Definition: OMEevent.cpp:99
void OMEaddEventToQueue(OMEevent *event)
Definition: OMEevent.cpp:43
bool operator<(const OMEevent &arg) const
Event ordering.
Definition: OMEevent.h:65
#define OME_EXPECT_FALSE(expr)
Annotation macro for conditional expression expected to be false.
Definition: compiler_hints.h:540
bool postEvent()
Post event and call callback function.
Definition: OMEevent.h:78
#define OME_FAST_CALL
Definition: compiler_hints.h:468
Base class for events within the FARGOS/VISTA Object Management Environment.
Definition: OMEevent.h:22
#define OMEdebugEvents
Definition: OMEdebugInfo.h:23
#define _STD
Definition: OMEmanifests.h:146
OME debug and profiling interfaces.
Public interface to an OME thread.
Definition: OMEthread.h:60
#define LOG_ENDLINE
Closing clause for text line output using << operators.
Definition: logging_api.hpp:2956
bool operator==(const OMEevent &arg) const
Event equality.
Definition: OMEevent.h:53
#define LOG_CERR(lvl)
Convenience macro that uses LOG_INTO() to conditionally log a message to standard error.
Definition: logging_api.hpp:3014