ebiten/internal/buffered
Hajime Hoshi d9cf1095d4 buffered: Bug fix: Race conndition on delayedCommands
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
2020-06-16 23:22:18 +09:00
..
command.go buffered: Bug fix: Race conndition on delayedCommands 2020-06-16 23:22:18 +09:00
image_test.go buffered: Add Shader 2020-05-30 03:36:28 +09:00
image.go buffered: Bug fix: Race conndition on delayedCommands 2020-06-16 23:22:18 +09:00