summaryrefslogtreecommitdiffstats
path: root/src/core/jobs
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2019-11-14 16:02:30 +0000
committerMike Krus <mike.krus@kdab.com>2019-11-14 21:32:49 +0000
commiteaa0d0d632f258500d4b0ab9fd2ee3d3f47c1c8a (patch)
tree264431a19c8936358050eee0d0743a04e3a0a55c /src/core/jobs
parentaef625746025bbb5c5af1a3f8159c77413ceeaf5 (diff)
Disable threaded rendering macOS 10.14 and later
Making context current from background thread crashes on Catalina. In this case, we disable threaded rendering. This implies changes in the order in which initialization and rendering happens. We can't just rely on rendering type since Scene3D is not threaded but has it's own initialization logic. Ideally 5.15 should introduce proper API since currently manually setting a QWindow based app to use Synchronous rendering will hang at initialization time. Task-number: QTBUG-80049 Change-Id: Ic346a44d8e0add8232a16129e878423f4cf2f4f1 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/jobs')
-rw-r--r--src/core/jobs/qaspectjobproviderinterface_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/jobs/qaspectjobproviderinterface_p.h b/src/core/jobs/qaspectjobproviderinterface_p.h
index 29b44b3c1..f7d0f9d39 100644
--- a/src/core/jobs/qaspectjobproviderinterface_p.h
+++ b/src/core/jobs/qaspectjobproviderinterface_p.h
@@ -69,6 +69,7 @@ public:
private:
virtual QVector<QAspectJobPtr> jobsToExecute(qint64 time) = 0;
+ virtual void jobsDone() = 0;
friend class QScheduler;
};