mpiEventStatusGet
Declaration
long mpiEventStatusGet(MPIEvent event, MPIEventStatus *status)
Description
mpiEventStatusGet gets the status of an Event object (event) and writes it into the structure pointed to by status. Event status includes the event type, type-specific codes and the event source.
|
|||||
|---|---|---|---|---|---|
Sample Code
/* Prototype for logging function */
void logToFile(const char*);
MPIEventStatus eventStatus;
long returnValue;
/* Wait for motion event */
returnValue =
mpiNotifyEventWait(notify,
&eventStatus,
MPIWaitFOREVER);
msgCHECK(returnValue);
/* Log event */
logToFile(mpiEventTypeName(eventStatus->type));
See Also
mpiEventStatusSet | mpiEventStatusInfo | MPIEventType
