Content-type: text/html Manpage of RTEvent

RTEvent

Section: Chronolytix (3)
Updated: 2005-07-07
Index Return to Main Contents
 

NAME

RTEvent - Chronolytix Event and Event Queueing Class  

SYNOPSYS

#include <RTEvent.h>

typedef void (*RTEvent_fp)(void *this, void *argp);

RTEvent *RTEvent_Constructor(const char *name, RTEvent_fp fp, void *this, void * arg);

RTEvent *RTEvent_Clone(RTEvent *evp);

void RTEvent_Free(RTEvent *evp);

RTEvent *RTEvent_Wait_For_Event(RTEventQueue evq);

void RTEvent_Consume(RTEvent *evp);

RTClockCount RTEvent_Enqueued(RTEvent *evp);

RTClockCount RTEvent_Stamped(RTEvent *evp);

 

DESCRIPTION

RTEvent is the Chronolytix class for manipulation of RTEvents and RTEventQueues. In general, RTEvents are subsumed in RTReactiveTasks which bind an RTEvent to a RTEventQueue. There is no other means of for an event source to enqueue events than by being bound to an RTReactiveTask.

The Constructor creates a named RTEvent which will call the RTEvent_fp with two arguments. Both arguments are type void * which may be any dereferencable pointer and may info fact be an RTRefCnt_Object pointer. When used with RTReactiveResponse, the RTEvent_fp will have storage management of its reference counted arguments handled automatically for the duration of the callback. RTEvent_Clone produces a copy of an event. RTEvent_Free frees the storage / references associated with an RTEvent. Event_fp will own a reference for the duration of its call.

The usual method for an event sink to get an RTEventQueue is by obtaining one from an RTTask. The RTEvent_Wait_For_Event and RTEvent_Consume(RTEvent *evp) allow an application RTTask to block and process events in a canonical way with the implementation details hidden within this class.

The RTClockCount RTEvent_Enqueued(RTEvent *evp) and RTClockCount RTEvent_Stamped(RTEvent *evp) methods allow an application to obtain information about event timing from an opaque event.

RTEvent is a core Chronolytix function.  

MAGIC

RTEvent 

RTEventQueue   

SEE ALSO

RTTask(Chronolytix), RTReactiveTask(Chronolytix), RTReactiveResponse(Chronolytix)


 

Index

NAME
SYNOPSYS
DESCRIPTION
MAGIC
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 18:28:39 GMT, August 25, 2005