app/internal/window: run main on main thread on Android and iOS

Before this change, Android and iOS were special for two reasons:
app.Main would return immediately, and the program main was invoked from
a goroutine. We can reduce that to one special case by either

- run the program main from the main thread,
- or make app.Main block.

Choose to run main on the main thread.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-06-25 16:21:28 +02:00
parent 7ff17453dd
commit db03b0898d
+1 -1
View File
@@ -24,6 +24,6 @@ func runMain() {
// Indirect call, since the linker does not know the address of main when
// laying down this package.
fn := mainMain
go fn()
fn()
})
}