summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2018-08-11 16:12:54 -0400
committerPietro Gagliardi <[email protected]>2018-08-11 16:12:54 -0400
commit0f75ebb5fa7a12bd1df26622ed3f5544a9d1d32b (patch)
tree8668b188572b47e064b173b42fdf04061643dd51 /main.go
parentdc108a5d4dc79fa680fdad596e0b96dab3257895 (diff)
First step toward alpha 4: we no longer need the Windows resource trick.
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index b908e0a..dd1443a 100644
--- a/main.go
+++ b/main.go
@@ -27,6 +27,7 @@ import "C"
// make sure main() runs on the first thread created by the OS
// if main() calls Main(), things will just work on macOS, where the first thread created by the OS is the only thread allowed to be the main GUI thread
// we might as well lock the OS thread for the other platforms here too (though on those it doesn't matter *which* thread we lock to)
+// TODO describe the source of this trick
func init() {
runtime.LockOSThread()
}