rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count );
RTEMS_SUCCESSFUL
- number of messages pending returned successfully
RTEMS_INVALID_ADDRESS
- count
is NULL
RTEMS_INVALID_ID
- invalid queue id
This directive returns the number of messages pending on this message queue in count. If no messages are present on the queue, count is set to zero.
Getting the number of pending messages on a global message queue which does not reside on the local node will generate a request to the remote node to actually obtain the pending message count for the specified message queue.
Copyright © 1988-2008 OAR Corporation