mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-28 14:53:58 +00:00
6b43ce0662
1. Reorder unlock and notify_all calls to avoid notifying when not all worker threads are waiting. 2. Make sure main thread does not attempt to exclusively lock mSimulationMutex while not all workers are done with previous frame. 3. Replace mNewFrame flag by counter to avoid modification from multiple threads.