mpiEventStatusSet

Declaration

long mpiEventStatusSet(MPIEvent       event,
                       MPIEventStatus *status)
Required Header: stdmpi.h

Description

mpiEventStatusSet sets (writes) the status of event using data from the structure pointed to by status. Event status includes the event type, type-specific codes and the event source.

Return Values
MPIMessageOK

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

mpiEventStatusGet | mpiEventStatusInfo | MPIEventType

EventLog.c