msg_queue_destroy
3

# msg_queue_destroy

destroy message queue

    #include <cds/msg_queue.h>

      void msg_queue_destroy
      msg_queue_t *q

## Description

Destroys initialized message queue. After calling `msg_queue_destroy` can not be called any of message queue manipulation functions except `msg_queue_init`.

All messages which stay in the queue are automatically freed using `free_message`.

## See Also

, , , , ,