39 bool addEvent(uint32_t dataID)
override;
45 int getPendingCountLocked();
48 using EventList = std::vector<XEvent>;
50 mutable std::mutex m_mutex;
55 EventList m_postedEvents;
56 bool m_waiting =
false;
static fd_set FAR fd_set FAR fd_set FAR const struct timeval FAR * timeout
Definition ArchNetworkWinsock.cpp:40
Event.
Definition Event.h:29
Event queue buffer interface.
Definition IEventQueueBuffer.h:22
Type
Definition IEventQueueBuffer.h:26
Event queue interface.
Definition IEventQueue.h:29
~XWindowsEventQueueBuffer() override
Definition XWindowsEventQueueBuffer.cpp:37
XWindowsEventQueueBuffer(XWindowsEventQueueBuffer &&)=delete
Type getEvent(Event &event, uint32_t &dataID) override
Get the next event.
Definition XWindowsEventQueueBuffer.cpp:125
void init() override
Initialize.
Definition XWindowsEventQueueBuffer.h:33
XWindowsEventQueueBuffer(XWindowsEventQueueBuffer const &)=delete
XWindowsEventQueueBuffer & operator=(XWindowsEventQueueBuffer const &)=delete
XWindowsEventQueueBuffer & operator=(XWindowsEventQueueBuffer &&)=delete
bool isEmpty() const override
Check if event queue buffer is empty.
Definition XWindowsEventQueueBuffer.cpp:180
bool addEvent(uint32_t dataID) override
Post an event.
Definition XWindowsEventQueueBuffer.cpp:145
void waitForEvent(double timeout) override
Block waiting for an event.
Definition XWindowsEventQueueBuffer.cpp:50
XWindowsEventQueueBuffer(Display *, Window, IEventQueue *events)
Definition XWindowsEventQueueBuffer.cpp:23