Adding source/Platform/PlatformEventQueue.h
This commit is contained in:
parent
da76c4b4d1
commit
e6718e7ef1
1 changed files with 19 additions and 0 deletions
19
source/Platform/PlatformEventQueue.h
Normal file
19
source/Platform/PlatformEventQueue.h
Normal 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 */
|
||||||
Loading…
Add table
Add a link
Reference in a new issue