mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 07:32:24 +01:00
663c936428
If a newly started thread immediately exits then m_running would immediately be set to false again and the caller would be stuck waiting for m_running to become true forever. Since a mutex for synchronizing startup already exists we can simply move the while loop into it. see also: #5134 which introduced m_start_finished_mutex |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
event.cpp | ||
event.h | ||
mutex_auto_lock.h | ||
semaphore.cpp | ||
semaphore.h | ||
thread.cpp | ||
thread.h |