msg_queue_t

3

msg_queue_t

message queue data structure

    #include <cds/msg_queue.h>

    typedef struct msg_queue {
    	mq_message_t *first;
    	mq_message_t *last;
    	cds_mutex_t q_mutex;
    	int use_mutex;
    } msg_queue_t;

## Description

Message queue is implemented as simple linked list of elements. Message queue may be locked or not - it depends on initialization.

Warning: internal implementation of this structure may change, use it only through existing functions.

## See Also

mq_message_t