RTEMS Logo

RTEMS 4.6.99.3 On-Line Library


Message Passing Manager Removing a Message Queue

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

16.3.3: Removing a Message Queue

The mq_unlink() function removes the named message queue. If the message queue is not open when mq_unlink is called, then the queue is immediately eliminated. Any messages that were on the queue are lost, and the queue can not be opened again. If processes have the queue open when mq_unlink is called, the removal of the queue is delayed until the last process using the queue has finished. However, the name of the message queue is removed so that no other process can open it.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2004 OAR Corporation