mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
1796f24a38f7a30575d8ea5675177bd325228d94
Window.driverRun is designed to run functions on the driver event goroutine, to avoid race conditions with internal driver state and, more importantly, to run on the designated main or UI thread for platforms that require that. However, driverRun runs functions during the processing of a driver event, so if a function in turn triggers another driver event, deadlock occurs. This change introduces Window.driverDefer for functions that don't need to block event processing. Functions passed to driverDefer may themselves trigger new events. A few callers of driverRun remain; they need the result of their functions but are guaranteed not to trigger new events. Fixes gio#263 Signed-off-by: Elias Naur <mail@eliasnaur.com>
Gio - https://gioui.org
Immediate mode GUI programs in Go for Android, iOS, macOS, Linux, FreeBSD, OpenBSD, Windows, and WebAssembly (experimental).
Installation, examples, documentation
Go to gioui.org.
Issues
File bugs and TODOs through the issue tracker or send an email to ~eliasnaur/gio@todo.sr.ht. For general discussion, use the mailing list: ~eliasnaur/gio@lists.sr.ht.
Contributing
Post discussion to the mailing list and patches to gio-patches. No Sourcehut account is required and you can post without being subscribed.
See the contribution guide for more details.
An official GitHub mirror is available.
Description
Languages
Go
89.6%
C
7%
Java
1.7%
Objective-C
1.6%