mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
mainthread: RunLockOSThread is mainthread package's responsibility
This commit is contained in:
parent
c76ce28065
commit
532488ac5c
@ -14,6 +14,14 @@
|
||||
|
||||
package mainthread
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func init() {
|
||||
runtime.LockOSThread()
|
||||
}
|
||||
|
||||
var funcs = make(chan func())
|
||||
|
||||
// Loop starts the main-thread loop.
|
||||
|
@ -76,7 +76,6 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
runtime.LockOSThread()
|
||||
hideConsoleWindowOnWindows()
|
||||
if err := initialize(); err != nil {
|
||||
panic(err)
|
||||
|
Loading…
Reference in New Issue
Block a user