some more lock handling
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
55a22c840c
commit
f16d92c1b1
@ -31,6 +31,7 @@ CcsdsIpCoreHandler::CcsdsIpCoreHandler(object_id_t objectId, object_id_t tcDesti
|
|||||||
auto mqArgs = MqArgs(objectId, static_cast<void*>(this));
|
auto mqArgs = MqArgs(objectId, static_cast<void*>(this));
|
||||||
eventQueue =
|
eventQueue =
|
||||||
QueueFactory::instance()->createMessageQueue(10, EventMessage::EVENT_MESSAGE_SIZE, &mqArgs);
|
QueueFactory::instance()->createMessageQueue(10, EventMessage::EVENT_MESSAGE_SIZE, &mqArgs);
|
||||||
|
ptmeLocked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
CcsdsIpCoreHandler::~CcsdsIpCoreHandler() = default;
|
CcsdsIpCoreHandler::~CcsdsIpCoreHandler() = default;
|
||||||
@ -79,6 +80,8 @@ ReturnValue_t CcsdsIpCoreHandler::initialize() {
|
|||||||
} else {
|
} else {
|
||||||
enablePrioritySelectMode();
|
enablePrioritySelectMode();
|
||||||
}
|
}
|
||||||
|
resetPtme();
|
||||||
|
ptmeLocked = false;
|
||||||
|
|
||||||
#if OBSW_SYRLINKS_SIMULATED == 1
|
#if OBSW_SYRLINKS_SIMULATED == 1
|
||||||
// Update data on rising edge
|
// Update data on rising edge
|
||||||
@ -330,6 +333,7 @@ void CcsdsIpCoreHandler::initPtmeUpdateAfterXCycles() {
|
|||||||
if (not updateContext.performPtmeUpdateAfterXCycles) {
|
if (not updateContext.performPtmeUpdateAfterXCycles) {
|
||||||
updateContext.performPtmeUpdateAfterXCycles = true;
|
updateContext.performPtmeUpdateAfterXCycles = true;
|
||||||
updateContext.ptmeUpdateCycleCount = 0;
|
updateContext.ptmeUpdateCycleCount = 0;
|
||||||
|
ptmeLocked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user