9 static const int classID = 2;
11 virtual int getClassID()
const {
return classID; }
53 using Module::ActiveModule_t::ActiveModule_t;
56 std::queue<Msg_t *> incoming;
58 void _queueMsg(
Msg_t *msg) {
64 Msg_t *msg =
new Msg_t(
this, receiver, value);
65 receiver->_queueMsg(msg);
70 void sendMessageWait(MessengerModule_t *receiver,
const void *value) {
71 Msg_t msg(
this, receiver, value);
72 receiver->_queueMsg(&msg);
77 Msg_t *receiveMessage() {
80 Msg_t *msg = incoming.front();
82 msg->status = Msg_t::RECEIVED;