mainthread: RunLockOSThread is mainthread package's responsibility

This commit is contained in:
Hajime Hoshi 2018-12-28 02:20:53 +09:00
parent c76ce28065
commit 532488ac5c
2 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,14 @@
package mainthread
import (
"runtime"
)
func init() {
runtime.LockOSThread()
}
var funcs = make(chan func())
// Loop starts the main-thread loop.

View File

@ -76,7 +76,6 @@ var (
)
func init() {
runtime.LockOSThread()
hideConsoleWindowOnWindows()
if err := initialize(); err != nil {
panic(err)