mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48: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
|
package mainthread
|
||||||
|
|
||||||
|
import (
|
||||||
|
"runtime"
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
runtime.LockOSThread()
|
||||||
|
}
|
||||||
|
|
||||||
var funcs = make(chan func())
|
var funcs = make(chan func())
|
||||||
|
|
||||||
// Loop starts the main-thread loop.
|
// Loop starts the main-thread loop.
|
||||||
|
@ -76,7 +76,6 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
runtime.LockOSThread()
|
|
||||||
hideConsoleWindowOnWindows()
|
hideConsoleWindowOnWindows()
|
||||||
if err := initialize(); err != nil {
|
if err := initialize(); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user