ecs icon indicating copy to clipboard operation
ecs copied to clipboard

Race Conditions detected on the World struct

Open edoardo849 opened this issue 7 years ago • 0 comments

When I build the game using the -race flag:


go build -race main.go

and run it on a different goroutine (I'm using a server to add entities to the World) the compiler detects race conditions.

This PR adds an RWMutex to the ecs package to sync the state of the world

edoardo849 avatar Sep 27 '18 14:09 edoardo849