RTEMS Logo

RTEMS 4.6.1 On-Line Library


Message Manager Building a MESSAGE_QUEUE_RECEIVE Option Set

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

10.2.4: Building a MESSAGE_QUEUE_RECEIVE Option Set

In general, an option is built by a bitwise OR of the desired option components. The set of valid options for the rtems.message_queue_receive directive are listed in the following table:

An option listed as a default is not required to appear in the option OR list, although it is a good programming practice to specify default options. If all defaults are desired, the option RTEMS.DEFAULT_OPTIONS should be specified on this call.

This example demonstrates the option parameter needed to poll for a message to arrive. The option parameter passed to the rtems.message_queue_receive directive should be RTEMS.NO_WAIT.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2004 OAR Corporation