forked from Mirrorlandia_minetest/minetest
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 |