You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, adding std::this_thread::sleep_for(3s) between each lock() in order to give time for inputSDLThread to flip g_bSDLInitOK and unlock() doesn't help.
Locking
std::mutex
more than once from the same thread (without unlocking first) appears to cause an undefined behavior.https://en.cppreference.com/w/cpp/thread/mutex/lock
Unlocking
std::mutex
from a thread that didn't lock it appears to cause an undefined behavior.https://en.cppreference.com/w/cpp/thread/mutex/unlock
So, adding
std::this_thread::sleep_for(3s)
between eachlock()
in order to give time forinputSDLThread
to flipg_bSDLInitOK
andunlock()
doesn't help.The text was updated successfully, but these errors were encountered: