From d1a4238e0004675d5aa471f79298697f4dcffd41 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 7 Feb 2017 14:57:42 +0000 Subject: [PATCH] Add a utility to check if running on a lambda thread --- qrenderdoc/Code/QRDUtils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qrenderdoc/Code/QRDUtils.h b/qrenderdoc/Code/QRDUtils.h index d3b0c0bd4..b5603f434 100644 --- a/qrenderdoc/Code/QRDUtils.h +++ b/qrenderdoc/Code/QRDUtils.h @@ -560,6 +560,8 @@ public: return m_Thread->wait(time); return true; } + + bool isCurrentThread() { return QThread::currentThread() == m_Thread; } }; class QFileFilterModel : public QSortFilterProxyModel