ebiten/internal/processtest
Hajime Hoshi 6016c934f5 internal/ui: bug fix: setRunning(true) must be called after the main thread is set
Some functions like ebiten.SetCursorMode use `running` to detect
whether the game starts or not. If the game starts, the main thread
must exist, but there was a timing when `running` was true but the
main thread didn't exist.

This change fixes this issue by changing the timing to call
`setRunning(true)` after the main thread initialization and before
`initOnMainThread`. `initOnMainThread` assumes that `running` is
true.

Closes #2742
2023-09-02 04:26:38 +09:00
..
testdata internal/ui: bug fix: setRunning(true) must be called after the main thread is set 2023-09-02 04:26:38 +09:00
processtest_test.go internal/processtest: use a semaphore for sub-tests 2023-02-25 16:19:15 +09:00