rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count );
RTEMS_SUCCESSFUL
- message queue flushed successfully
RTEMS_INVALID_ADDRESS
- count
is NULL
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-2008 OAR Corporation