22 #if FW_OBJECT_TO_STRING == 1 23 const char* QueuedComponentBase::getToStringFormatString() {
24 return "QueueComp: %s";
30 #if FW_OBJECT_NAMES == 1 31 queueName = this->m_objName;
39 return this->m_msgsDropped;
43 this->m_msgsDropped++;
49 for (
FwSizeType i = 0; i < num_messages; i++) {
MsgDispatchStatus dispatchAvailableMessages()
dispatches all messages currently in the queue, returning status of the dispatch
virtual ~QueuedComponentBase()
Destructor.
Status create(FwEnumStoreType id, const Fw::ConstStringBase &name, FwSizeType depth, FwSizeType messageSize) override
create queue storage through delegate
PlatformSizeType FwSizeType
QueuedComponentBase(const char *name)
Constructor.
static FwSizeType getNumQueues()
get number of queues system-wide
FwEnumStoreType getInstance() const
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)
Status
Generic OK/ERROR status.
void deinit() override
Allows de-initialization on teardown.
void teardown() override
teardown the queue
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
FwSizeType getMessagesAvailable() const override
get number of messages available
void incNumMsgDropped()
increment the number of messages dropped
Implementation of malloc based allocator.