object manager is now a singleton
This commit is contained in:
action
controller
datalinklayer
datapoollocal
devicehandlers
events
fdir
health
housekeeping
memory
monitoring
objectmanager
osal
FreeRTOS
common
host
linux
rtems
parameters
power
pus
CService200ModeCommanding.cppCService201HealthCommanding.cppService1TelecommandVerification.cppService20ParameterManagement.cppService20ParameterManagement.hService2DeviceAccess.cppService3Housekeeping.cppService5EventReporting.cppService8FunctionManagement.cpp
storagemanager
subsystem
tcdistribution
thermal
tmstorage
tmtcpacket/pus
tmtcservices
unittest
tests
datapoollocal
user
unittest
@ -1,8 +1,12 @@
|
||||
#include "../../tasks/ExecutableObjectIF.h"
|
||||
#include "../../serviceinterface/ServiceInterfaceStream.h"
|
||||
#include <errno.h>
|
||||
#include "PeriodicPosixTask.h"
|
||||
|
||||
#include "../../objectmanager/ObjectManager.h"
|
||||
#include "../../tasks/ExecutableObjectIF.h"
|
||||
#include "../../serviceinterface/ServiceInterface.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
PeriodicPosixTask::PeriodicPosixTask(const char* name_, int priority_,
|
||||
size_t stackSize_, uint32_t period_, void(deadlineMissedFunc_)()):
|
||||
PosixThread(name_, priority_, stackSize_), objectList(), started(false),
|
||||
@ -22,7 +26,7 @@ void* PeriodicPosixTask::taskEntryPoint(void* arg) {
|
||||
}
|
||||
|
||||
ReturnValue_t PeriodicPosixTask::addComponent(object_id_t object) {
|
||||
ExecutableObjectIF* newObject = objectManager->get<ExecutableObjectIF>(
|
||||
ExecutableObjectIF* newObject = ObjectManager::instance()->get<ExecutableObjectIF>(
|
||||
object);
|
||||
if (newObject == nullptr) {
|
||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||
|
Reference in New Issue
Block a user