FIUS / ICGE

Introduction Course Game Engine for the FIUS Java Introduction Course
MIT License
3 stars 2 forks source link

Possible race condition on TickEvent #65

Closed haslersn closed 6 years ago

haslersn commented 6 years ago

In https://github.com/FIUS/ICGE/blob/7a9a5077af851999d898726dffed815606b13915/src/main/java/de/unistuttgart/informatik/fius/icge/simulation/Simulation.java#L265-L266 there's probably a race condition if another thread calls EventDispatcher.afterwards() before the handling of the following TickEvent begins.