summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonplugin.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2023-04-04 13:39:56 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2023-04-04 13:20:06 +0000
commit031f51794a944787a6e7757f0906c0776c9eeba4 (patch)
tree8b295631c24f5c488d885443395b718c51960691 /src/plugins/python/pythonplugin.h
parentf019dd14e038e300cd82b4cea8fc5c44e623db4d (diff)
downloadqt-creator-031f51794a944787a6e7757f0906c0776c9eeba4.tar.gz
Python: Don't leak running futures on shutdown
This patch fixes the following assert on shutdown: "Shutting down while process /testenv/bin/python is running\"\n". Change-Id: I4c32ead5e4952b69ffc6037739fd417a632eda1a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/python/pythonplugin.h')
-rw-r--r--src/plugins/python/pythonplugin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/python/pythonplugin.h b/src/plugins/python/pythonplugin.h
index ef0860bbca..7c8ca121f3 100644
--- a/src/plugins/python/pythonplugin.h
+++ b/src/plugins/python/pythonplugin.h
@@ -5,6 +5,8 @@
#include <extensionsystem/iplugin.h>
+namespace Utils { class FutureSynchronizer; }
+
namespace Python::Internal {
class PythonPlugin final : public ExtensionSystem::IPlugin
@@ -17,6 +19,7 @@ public:
~PythonPlugin() final;
static PythonPlugin *instance();
+ static Utils::FutureSynchronizer *futureSynchronizer();
private:
void initialize() final;