fix(ScriptRunner): fix deadlock#1209
Conversation
|
Couldn't both be passed into the same scoped_lock ctor? https://en.cppreference.com/w/cpp/thread/scoped_lock/scoped_lock |
|
@praydog I just reproduced the deadlock problem again, so I think In imgui thread, REFramework/src/REFramework.cpp Lines 769 to 776 in 1b8da08 and then get_hook_monitor_mutex called here REFramework/src/mods/ScriptRunner.cpp Lines 1170 to 1174 in 1b8da08 But in d3d12 threads, get_hook_monitor_mutex is first called here Lines 78 to 85 in 1b8da08 and then m_imgui_mtx locked here REFramework/src/REFramework.cpp Lines 1087 to 1091 in 1b8da08 Unfortunately, them are not in the same function, is there a easy way to solve it? BTW, this pr solve my problem most of the time, I don't know the reason |
|
Should be fixed in 8358c55 |
Fix deadlock problem when play MHWilds on a high performance machine