Robin Mueller
a5692079c6
And other small changes. Only assign last partner if message receiving was successful. Some formatting stuff, include in <> notation doc for task factory free RTOS, high priority means high number
35 lines
847 B
C++
35 lines
847 B
C++
#include <framework/ipc/QueueFactory.h>
|
|
|
|
#include <framework/osal/FreeRTOS/MessageQueue.h>
|
|
|
|
|
|
QueueFactory* QueueFactory::factoryInstance = NULL;
|
|
|
|
|
|
ReturnValue_t MessageQueueSenderIF::sendMessage(MessageQueueId_t sendTo,
|
|
MessageQueueMessage* message, MessageQueueId_t sentFrom,bool ignoreFault) {
|
|
return MessageQueue::sendMessageFromMessageQueue(sendTo,message,sentFrom,ignoreFault);
|
|
}
|
|
|
|
QueueFactory* QueueFactory::instance() {
|
|
if (factoryInstance == NULL) {
|
|
factoryInstance = new QueueFactory;
|
|
}
|
|
return factoryInstance;
|
|
}
|
|
|
|
QueueFactory::QueueFactory() {
|
|
}
|
|
|
|
QueueFactory::~QueueFactory() {
|
|
}
|
|
|
|
MessageQueueIF* QueueFactory::createMessageQueue(uint32_t message_depth,
|
|
uint32_t max_message_size) {
|
|
return new MessageQueue(message_depth, max_message_size);
|
|
}
|
|
|
|
void QueueFactory::deleteMessageQueue(MessageQueueIF* queue) {
|
|
delete queue;
|
|
}
|