graphicscommand: Remove the dependency on internal/thread

This commit is contained in:
Hajime Hoshi 2020-10-17 20:43:17 +09:00
parent 294f4364da
commit c051acd6f2

View File

@ -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
}