make sure threads will get out of 'workerThreadWait' so they can exit at the end

This commit is contained in:
Erwin Coumans
2017-01-12 08:06:40 -08:00
parent 8caea20425
commit 1c79798583

View File

@@ -1246,6 +1246,9 @@ void PhysicsServerExample::exitPhysics()
{
b3Clock::usleep(1000);
}
//we need to call 'stepSimulation' to make sure that
//other threads get out of blocking state (workerThreadWait)
stepSimulation(0);
};
printf("stopping threads\n");