The rtems_message_queue_delete
directive removes a message
queue from the system and frees its control block as well as the
memory associated with this message queue's message buffer pool.
A message queue can be deleted by any local task that knows the
message queue's ID. As a result of this directive, all tasks
blocked waiting to receive a message from the message queue will
be readied and returned a status code which indicates that the
message queue was deleted. Any subsequent references to the
message queue's name and ID are invalid. Any messages waiting
at the message queue are also deleted and deallocated.
Copyright © 1988-2008 OAR Corporation