Locking OS thread in init method.
This commit is contained in:
parent
9a2fa3ab81
commit
734d0db4b9
@ -12,8 +12,13 @@ import "C"
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
runtime.LockOSThread()
|
||||||
|
}
|
||||||
|
|
||||||
type InitConfig struct {
|
type InitConfig struct {
|
||||||
Font bool
|
Font bool
|
||||||
Image bool
|
Image bool
|
||||||
|
Loading…
Reference in New Issue
Block a user