mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
parent
64db8f9c7a
commit
87b4b8b1b4
@ -47,7 +47,8 @@ func Loop(ch <-chan error) error {
|
|||||||
// Run calls f on the main thread.
|
// Run calls f on the main thread.
|
||||||
func Run(f func() error) error {
|
func Run(f func() error) error {
|
||||||
if atomic.LoadInt32(&started) == 0 {
|
if atomic.LoadInt32(&started) == 0 {
|
||||||
panic("mainthread: the mainthread loop is not started yet")
|
// TODO: This can reach from other goroutine before Loop is called (#809).
|
||||||
|
// panic("mainthread: the mainthread loop is not started yet")
|
||||||
}
|
}
|
||||||
|
|
||||||
ch := make(chan struct{})
|
ch := make(chan struct{})
|
||||||
|
Loading…
Reference in New Issue
Block a user