mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphicscommand: Remove the dependency on internal/thread
This commit is contained in:
parent
294f4364da
commit
c051acd6f2
@ -14,13 +14,13 @@
|
||||
|
||||
package graphicscommand
|
||||
|
||||
import (
|
||||
"github.com/hajimehoshi/ebiten/v2/internal/thread"
|
||||
)
|
||||
var theThread Thread
|
||||
|
||||
var theThread *thread.Thread
|
||||
type Thread interface {
|
||||
Call(f func() error) error
|
||||
}
|
||||
|
||||
func SetMainThread(thread *thread.Thread) {
|
||||
func SetMainThread(thread Thread) {
|
||||
theThread = thread
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user