modifyData override deleted
is not really thread-safe anyway
This commit is contained in:
parent
fe9aa46cf8
commit
9489b7abc1
@ -13,15 +13,11 @@
|
||||
#include <framework/devicehandlers/DeviceHandlerBase.h>
|
||||
|
||||
/**
|
||||
* @brief Used to pass communication information between tasks
|
||||
* @brief Message type to send larger messages
|
||||
*
|
||||
* @details
|
||||
* Can be used to pass information like data pointers and
|
||||
* data sizes between communication tasks
|
||||
* like the Device Handler Comm Interfaces and Polling Tasks.
|
||||
*
|
||||
* Can also be used to exchange actual data if its not too large
|
||||
* (e.g. Sensor values).
|
||||
* data sizes between communication tasks.
|
||||
*
|
||||
*/
|
||||
class CommunicationMessage: public MessageQueueMessage {
|
||||
|
@ -25,9 +25,6 @@ public:
|
||||
ReturnValue_t deleteData(store_address_t) override;
|
||||
ReturnValue_t deleteData(uint8_t* buffer, size_t size,
|
||||
store_address_t* storeId = NULL) override;
|
||||
|
||||
ReturnValue_t modifyData(store_address_t packet_id, uint8_t** packet_ptr,
|
||||
size_t* size) override;
|
||||
protected:
|
||||
ReturnValue_t reserveSpace(const uint32_t size, store_address_t* address,
|
||||
bool ignoreFault) override;
|
||||
|
@ -40,11 +40,3 @@ inline ReturnValue_t PoolManager<NUMBER_OF_POOLS>::deleteData(uint8_t* buffer,
|
||||
return status;
|
||||
}
|
||||
|
||||
template<uint8_t NUMBER_OF_POOLS>
|
||||
inline ReturnValue_t PoolManager<NUMBER_OF_POOLS>::modifyData(
|
||||
store_address_t packet_id, uint8_t** packet_ptr, size_t* size) {
|
||||
MutexHelper mutexHelper(mutex,MutexIF::NO_TIMEOUT);
|
||||
ReturnValue_t status = LocalPool<NUMBER_OF_POOLS>::modifyData(packet_id,
|
||||
packet_ptr, size);
|
||||
return status;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user