Closed Jake-Moss closed 9 months 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).
physicsThreadEnabled
volatile
pthread_join
while(physicsThreadEnabled)
while(true)
physicsThreadEnabled
was missing avolatile
label causing thepthread_join
to block indefinitely as thewhile(physicsThreadEnabled)
loop was being optimised towhile(true)
.