1
0
Fork 0

Adding source/Platform/PlatformEventQueue.h

This commit is contained in:
Henrik Hautakoski 2020-01-24 15:35:48 +01:00
parent da76c4b4d1
commit e6718e7ef1
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745

View file

@ -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 */