summaryrefslogtreecommitdiff
path: root/games/devtest/mods/unittests/init.lua
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-04-30 16:04:19 +0200
committersfan5 <sfan5@live.de>2022-05-02 20:54:55 +0200
commit663c9364289dae45aeb86a87cba826f577d84a9c (patch)
treeeecbde60c46f941a7185cff4e88bef2bd5768e11 /games/devtest/mods/unittests/init.lua
parent56a558baf8ef43810014347ae624cb4ef70b6aa3 (diff)
downloadminetest-663c9364289dae45aeb86a87cba826f577d84a9c.tar.gz
minetest-663c9364289dae45aeb86a87cba826f577d84a9c.tar.bz2
minetest-663c9364289dae45aeb86a87cba826f577d84a9c.zip
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
Diffstat (limited to 'games/devtest/mods/unittests/init.lua')
0 files changed, 0 insertions, 0 deletions