mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
26 lines
441 B
C++
26 lines
441 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "IGpVOSEventQueue.h"
|
|
#include "GpVOSEvent.h"
|
|
|
|
class GpVOSEventQueue final : public IGpVOSEventQueue
|
|
{
|
|
public:
|
|
GpVOSEventQueue();
|
|
~GpVOSEventQueue();
|
|
|
|
const GpVOSEvent *GetNext() override;
|
|
void DischargeOne() override;
|
|
|
|
GpVOSEvent *QueueEvent() override;
|
|
|
|
private:
|
|
static const size_t kMaxEvents = 10000;
|
|
|
|
GpVOSEvent m_events[kMaxEvents];
|
|
size_t m_firstEvent;
|
|
size_t m_numEventsQueued;
|
|
};
|