victorfisac / Physac

2D physics header-only library for videogames developed in C using raylib library.
http://www.victorfisac.com/physac
MIT License
432 stars 28 forks source link

Add missing volatile declaration #59

Closed Jake-Moss closed 9 months ago

Jake-Moss commented 1 year ago

physicsThreadEnabled was missing a volatile label causing the pthread_join to block indefinitely as the while(physicsThreadEnabled) loop was being optimised to while(true).