36#ifndef MSG_QUE_H_INCLUDED
37#define MSG_QUE_H_INCLUDED
39#include "memutils/common_utils/common_types.h"
40#include "memutils/common_utils/common_assert.h"
41#include "memutils/message/BasicQueue.h"
42#include "memutils/message/MsgPacket.h"
45#define MSG_FILL_VALUE_AFTER_POP 0x0
52class MsgQue :
protected BasicQueue<drm_t, uint16_t, uint16_t, MSG_FILL_VALUE_AFTER_POP> {
57 MsgQue(drm_t data_area, uint16_t elem, uint16_t num) :
58 Base(data_area, elem, num) {}
64 using Base::elem_size;
79 return (push(header) ==
true) ? backMsg() : NULL;
82 MsgPacket* frontMsg() {
return &front<MsgPacket>(); }
83 MsgPacket* backMsg() {
return &back<MsgPacket>(); }
Definition: BasicQueue.h:79
Definition: MsgPacket.h:142