11 #ifndef FW_QUEUED_COMPONENT_BASE_HPP 12 #define FW_QUEUED_COMPONENT_BASE_HPP 45 #if FW_OBJECT_TO_STRING == 1 46 const char* getToStringFormatString()
override;
MsgDispatchStatus dispatchAvailableMessages()
dispatches all messages currently in the queue, returning status of the dispatch
virtual ~QueuedComponentBase()
Destructor.
PlatformSizeType FwSizeType
Status
status returned from the queue send function
QueuedComponentBase(const char *name)
Constructor.
virtual MsgDispatchStatus doDispatch()=0
method to dispatch a single message in the queue.
Os::Queue m_queue
queue object for active component
void init()
Object initializer.
FwSizeType getNumMsgsDropped()
return number of messages dropped
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
void deinit() override
Allows de-initialization on teardown.
Errors dispatching messages.
A message was sent requesting an exit of the loop.
void incNumMsgDropped()
increment the number of messages dropped
Implementation of malloc based allocator.
No more messages in the queue.