procedure Message_Queue_Flush ( ID : in RTEMS.ID; Count : out RTEMS.Unsigned32; Result : out RTEMS.Status_Codes );
RTEMS.SUCCESSFUL
- message queue flushed successfully
RTEMS.INVALID_ID
- invalid queue id
This directive removes all pending messages from the specified queue id. The number of messages removed is returned in count. If no messages are present on the queue, count is set to zero.
Flushing all messages on a global message queue which does not reside on the local node will generate a request to the remote node to actually flush the specified message queue.
Copyright © 1988-2004 OAR Corporation