andlabs / andlabs/libui

request: uiMainStepPoll()

Open
#146 24 comments 0 reactions 0 assignees View on GitHub
custom main loops enhancement help wanted question
Dominant language
C
Stars
10.9k
Forks
612
PR merge metrics
No merged PRs in 30d

Description

split from #95
a way to combine uiMainStep() with select() or poll()

on GTK+ and OS X this should be fine

on Windows I don't know one thing:

What would the equivalent of a `select()` be on Windows? It appears `MsgWaitForMultipleObjectsEx()` does not accept file or socket handles. Does it have to do with `OVERLAPPED`? I see [GLib accepts file handles on Windows...](https://developer.gnome.org/glib/2.40/glib-The-Main-Event-Loop.html#GPollFD)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.