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