40#ifndef __SONY_APPS_INCLUDE_MEMUTILS_MESSAGE_MESSAGE_H
41#define __SONY_APPS_INCLUDE_MEMUTILS_MESSAGE_MESSAGE_H
52#include "memutils/common_utils/common_errcode.h"
53#include "memutils/message/message_type.h"
56#define MSG_LIB_NAME "MsgLib"
57#define MSG_LIB_VER "2.03"
73 InterCpuLock::SpinLockId spinlock;
90 static uint32_t num_msg_pools;
91 static uint32_t msgq_top_drm;
101 static err_t
initFirst(uint32_t num_pools, uint32_t top_drm);
121 static bool isInitFirstComplete();
125 static err_t isInitComplete(MsgQueId
id,
bool &done);
129 static err_t referMsgQueBlock(MsgQueId
id,
MsgQueBlock **que);
132 static err_t send(MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply);
145 static err_t
send(MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply,
const T& param)
148 err_t err_code = ERR_OK;
150 err_code = referMsgQueBlock(dest, &que);
151 if (err_code == ERR_OK)
153 return que->send(pri, type, reply, MsgPacket::MsgFlagWaitParam, param);
160 static err_t send(MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply,
const void* param,
size_t param_size);
163 static err_t sendIsr(MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply);
167 static err_t sendIsr(MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply,
const T& param)
170 err_t err_code = ERR_OK;
172 err_code = referMsgQueBlock(dest, &que);
173 if (err_code == ERR_OK)
175 return que->sendIsr(pri, type, reply, param);
182 static err_t sendIsr(MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply,
const void* param,
size_t param_size);
185 static err_t notifyRecv(MsgQueId dest);
191#include "MsgNotify.h"
Message Library Class.
Definition: Message.h:88
static err_t initPerCpu()
static err_t send(MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply, const T ¶m)
Definition: Message.h:145
static err_t initFirst(uint32_t num_pools, uint32_t top_drm)
Message Queue Class.
Definition: MsgQueBlock.h:72