diff --git a/Common/Cpp/Concurrency/ConditionVariable.h b/Common/Cpp/Concurrency/ConditionVariable.h index a08fe39865..4c979b92a4 100644 --- a/Common/Cpp/Concurrency/ConditionVariable.h +++ b/Common/Cpp/Concurrency/ConditionVariable.h @@ -7,11 +7,14 @@ #ifndef PokemonAutomation_Concurrency_ConditionVariable_H #define PokemonAutomation_Concurrency_ConditionVariable_H -#include #include "Qt6.9ThreadBugWorkaround.h" -#ifdef PA_ENABLE_QT_ADOPTION_WORKAROUND +// Note from Kuro (2026/08/15): I think it's ok to disable this workaround for +// mutex and conditional_variable since we're completely leaking the thread. +// So the parasitic adoption should dangle these sync classes. +#if 0 //def PA_ENABLE_QT_ADOPTION_WORKAROUND +#include #include //#include diff --git a/Common/Cpp/Concurrency/Mutex.h b/Common/Cpp/Concurrency/Mutex.h index 2de67402be..b8e9945819 100644 --- a/Common/Cpp/Concurrency/Mutex.h +++ b/Common/Cpp/Concurrency/Mutex.h @@ -9,7 +9,10 @@ #include "Qt6.9ThreadBugWorkaround.h" -#ifdef PA_ENABLE_QT_ADOPTION_WORKAROUND +// Note from Kuro (2026/08/15): I think it's ok to disable this workaround for +// mutex and conditional_variable since we're completely leaking the thread. +// So the parasitic adoption should dangle these sync classes. +#if 0 //def PA_ENABLE_QT_ADOPTION_WORKAROUND #include #include