added cookie caching and deletion
This commit is contained in:
parent
b8e7b12a63
commit
fb0834ffe1
@ -23,8 +23,9 @@ DeviceHandlerBase::DeviceHandlerBase(object_id_t setObjectId,
|
|||||||
size_t cmdQueueSize) :
|
size_t cmdQueueSize) :
|
||||||
SystemObject(setObjectId), mode(MODE_OFF), submode(SUBMODE_NONE),
|
SystemObject(setObjectId), mode(MODE_OFF), submode(SUBMODE_NONE),
|
||||||
wiretappingMode(OFF), storedRawData(StorageManagerIF::INVALID_ADDRESS),
|
wiretappingMode(OFF), storedRawData(StorageManagerIF::INVALID_ADDRESS),
|
||||||
deviceCommunicationId(deviceCommunication), deviceThermalStatePoolId(
|
deviceCommunicationId(deviceCommunication), comCookie(comCookie),
|
||||||
thermalStatePoolId),deviceThermalRequestPoolId(thermalRequestPoolId),
|
deviceThermalStatePoolId(thermalStatePoolId),
|
||||||
|
deviceThermalRequestPoolId(thermalRequestPoolId),
|
||||||
healthHelper(this,setObjectId), modeHelper(this), parameterHelper(this),
|
healthHelper(this,setObjectId), modeHelper(this), parameterHelper(this),
|
||||||
childTransitionFailure(RETURN_OK), fdirInstance(fdirInstance),
|
childTransitionFailure(RETURN_OK), fdirInstance(fdirInstance),
|
||||||
hkSwitcher(this), defaultFDIRUsed(fdirInstance == nullptr),
|
hkSwitcher(this), defaultFDIRUsed(fdirInstance == nullptr),
|
||||||
@ -44,6 +45,7 @@ DeviceHandlerBase::DeviceHandlerBase(object_id_t setObjectId,
|
|||||||
|
|
||||||
DeviceHandlerBase::~DeviceHandlerBase() {
|
DeviceHandlerBase::~DeviceHandlerBase() {
|
||||||
//communicationInterface->close(cookie);
|
//communicationInterface->close(cookie);
|
||||||
|
delete comCookie;
|
||||||
if (defaultFDIRUsed) {
|
if (defaultFDIRUsed) {
|
||||||
delete fdirInstance;
|
delete fdirInstance;
|
||||||
}
|
}
|
||||||
|
@ -611,7 +611,7 @@ protected:
|
|||||||
/**
|
/**
|
||||||
* Cookie used for communication
|
* Cookie used for communication
|
||||||
*/
|
*/
|
||||||
CookieIF * comCookie = nullptr;
|
CookieIF * comCookie;
|
||||||
|
|
||||||
struct DeviceCommandInfo {
|
struct DeviceCommandInfo {
|
||||||
bool isExecuting; //!< Indicates if the command is already executing.
|
bool isExecuting; //!< Indicates if the command is already executing.
|
||||||
|
Loading…
Reference in New Issue
Block a user