1#ifndef XF_IDF_STM32_EVENT_QUEUE_H
2#define XF_IDF_STM32_EVENT_QUEUE_H
5#include "config/xf-config.h"
7#if (USE_XF_IDF_STM32_EVENT_QUEUE_CLASS != 0)
11#include "xf/interface/eventqueue.h"
34 bool push(
const XFEvent * pEvent,
bool fromISR =
false)
override;
Base class for all types of events and timeouts.
Definition: event.h:23
Default Qt implementation for the XFEventQueue interface.
Definition: eventqueue.h:22
bool empty() const override
Returns true if no event is in the queue.
EventQueue queue_
Internal queue holding the events.
Definition: eventqueue.h:40
void pop() override
Pops the next event from the queue.
bool pend() override
Wait for the next event to arrive. Returns true if an event is in the queue.
Mutex mutex_
Mutex protecting access to queue_.
Definition: eventqueue.h:42
const XFEvent * front() override
Returns pointer to next event to pop.
bool push(const XFEvent *pEvent, bool fromISR=false) override
Pushes the given event onto the queue.
std::queue< const XFEvent * > EventQueue
Type of the event queue.
Definition: eventqueue.h:40
QQueue< const XFEvent * > EventQueue
Type of the event queue.
Definition: eventqueue.h:36
Default Qt implementation for the XFMutex interface.
Definition: mutex.h:20
Interface to be implemented by the event queue.
Definition: eventqueue.h:12
Mutex interface needed by the XF to access a mutex.
Definition: mutex.h:18