proper MQ implementation #401
Reference in New Issue
Block a user
No description provided.
Delete Branch "mueller/host-osal-vector-mq"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This implementation now allows variable message types and is not hardcoded to the
MessageQueueMessage
@ -128,21 +130,10 @@ ReturnValue_t MessageQueue::sendMessageFromMessageQueue(MessageQueueId_t sendTo,
return HasReturnvaluesIF::RETURN_FAILED;
With a resizing container underneath, this might become a problem. As this is a important config error (even for host systems) this should try to print an error.
@ -81,3 +80,3 @@
*count = messageQueue.size();
// Clears the queue.
messageQueue = std::queue<MessageQueueMessage>();
messageQueue = std::queue<std::vector<uint8_t>>();
I can't see any use for different messages sizes for now. Actual I think the disadvantages prevail here (config errors, difference between Host system and RTOS, more complex handling in handlers for different messages sizes). It makes everything more complicated for a problem that has been solved already with the IPC Store.