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