MPI 04.00 Reference>>mpiNotify

mpiNotifyEventMaskGet

Declaration

int32_t mpiNotifyEventMaskGet(MPINotify    notify,
                           MPIEventMask *mask) 

 

Required Header: stdmpi.h

Description

mpiNotifyEventMaskGet writes an event mask (that specifies the event type(s) for which event notification is accepted by a Notify object (notify)) to the location pointed to by mask.

notify A handle to a notify object.
*mask A pointer to an event mask, whose bits are defined by the MPIEventType enumeration.
Return Values
MPIMessageOK

Sample Code

 /*
  Disables event notification and copies the previously used
  event mask to oldMask.  oldMask may then be used to re-enable
  event notification via another call to mpiNotifyEventMaskSet().
*/
  void NotifyDisable(MPINotify notify, MPIEventMask* oldMask)
{
    MPIEventMask newMask;
    int32_t returnValue;

    returnValue = mpiNotifyEventMaskGet(notify, oldMask);
    msgCheck(returnValue);

    mpiEventMaskCLEAR(newMask);

    returnValue = mpiNotifyEventMaskSet(notify, newMask);
    msgCheck(returnValue);
}

See Also

mpiNotifyEventMaskSet