andlabs / andlabs/libui

libuv integration

Offen
#427 10 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
10.9k
Forks
612
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

We can provide a cross-platform, high performance, and fully asynchronous I/O library by integrating [`libuv`] with libui. This should be optional, but will be very useful for Node.JS, .NET Core, and other consumers.

On systems where we use GTK, we can poll on the libuv file descriptor. On macOS, we can poll on both the libuv file descriptor and the Core Foundation Mach port, and on Windows 10 we can add the IOCP to `MsgWaitForSingleObject`. On Windows 7 and Windows 8.1, we will need to use a separate thread.

If we would rather avoid undocumented behavior, we can just use a separate thread on Windows and macOS, but I would prefer the higher-performance solution.

[`libuv`]:

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.