Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Common/Cpp/Concurrency/ConditionVariable.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
#ifndef PokemonAutomation_Concurrency_ConditionVariable_H
#define PokemonAutomation_Concurrency_ConditionVariable_H

#include <mutex>
#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 <mutex>
#include <QWaitCondition>

//#include <iostream>
Expand Down
5 changes: 4 additions & 1 deletion Common/Cpp/Concurrency/Mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <mutex>
#include <QMutex>
Expand Down
Loading