some bugfixes
This commit is contained in:
@ -96,6 +96,10 @@ void PeriodicTask::taskFunctionality() {
|
||||
};
|
||||
auto nextStartTime{ currentStartTime };
|
||||
|
||||
for (const auto& object: objectList) {
|
||||
object->initializeAfterTaskCreation();
|
||||
}
|
||||
|
||||
/* Enter the loop that defines the task behavior. */
|
||||
for (;;) {
|
||||
if(terminateThread.load()) {
|
||||
|
@ -44,9 +44,17 @@ MessageQueueIF* QueueMapManager::getMessageQueue(
|
||||
return queueIter->second;
|
||||
}
|
||||
else {
|
||||
sif::warning << "QueueMapManager::getQueueHandle: The ID" <<
|
||||
messageQueueId << " does not exists in the map" << std::endl;
|
||||
return nullptr;
|
||||
if(messageQueueId == MessageQueueIF::NO_QUEUE) {
|
||||
sif::error << "QueueMapManager::getQueueHandle: Configuration"
|
||||
<< " error, NO_QUEUE was passed to this function!"
|
||||
<< std::endl;
|
||||
}
|
||||
else {
|
||||
sif::warning << "QueueMapManager::getQueueHandle: The ID "
|
||||
<< messageQueueId << " does not exists in the map."
|
||||
<< std::endl;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user