diff --git a/source/Platform/PlatformEventQueue.h b/source/Platform/PlatformEventQueue.h new file mode 100644 index 0000000..d6c92a6 --- /dev/null +++ b/source/Platform/PlatformEventQueue.h @@ -0,0 +1,19 @@ +#ifndef PLATFORM_MESSAGE_QUEUE_H +#define PLATFORM_MESSAGE_QUEUE_H + +namespace sp { + +// Interface for platform specific event queue. +class PlatformEventQueue +{ +public : + + // Poll one event from the platform's event queue. + // Returns false if there was no events. + // NOTE: This method is guaranteed to be non-blocking. + virtual bool poll(SysEvent& event) = 0; +}; + +} // namespace sp + +#endif /* PLATFORM_MESSAGE_QUEUE_H */