mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
d9cf1095d4
This CL fixes the race condtion on delayedCommands, which can be accessed and set to nil at the same time. This CL separates some operations for delayedCommands into slow- paths and fast-paths, and use mutex only at slow-paths for performance. The implementation is based on sync.Once. Fixes #1195 |
||
---|---|---|
.. | ||
command.go | ||
image_test.go | ||
image.go |