-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
event: implement pollEvent and tryEvent
Implement a way for an application to poll the event loop in a blocking way without popping an event. Implement a non-blocking pop. These together enable an application to poll the event loop and then drain it. This is useful when lots of events are delivered in a short amount of time so an application can batch process the events and then render. Signed-off-by: Tim Culverhouse <[email protected]>
- Loading branch information
1 parent
22af490
commit cecf774
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters