minetest/src/threading
sfan5 663c936428 Fix synchronization issue at thread start
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
2022-05-02 20:54:55 +02:00
..
CMakeLists.txt Use C++11 mutexes only (remove compat code) (#5922) 2017-06-06 16:29:28 +02:00
event.cpp Remove threads.h and replace its definitions with their C++11 equivalents (#5957) 2017-06-11 09:43:05 +02:00
event.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
mutex_auto_lock.h Use C++11 mutexes only (remove compat code) (#5922) 2017-06-06 16:29:28 +02:00
semaphore.cpp Optimize semaphore wait with zero timeout on POSIX 2019-11-14 20:20:14 +01:00
semaphore.h Code modernization: subfolders (#6283) 2017-08-19 22:23:47 +02:00
thread.cpp Fix synchronization issue at thread start 2022-05-02 20:54:55 +02:00
thread.h Remove Thread::kill() and related unittest (#10317) 2020-09-10 12:19:18 +02:00