diff --git a/src/corelib/thread/qfutureinterface_p.h b/src/corelib/thread/qfutureinterface_p.h index 6258e61de7..92a1072591 100644 --- a/src/corelib/thread/qfutureinterface_p.h +++ b/src/corelib/thread/qfutureinterface_p.h @@ -143,9 +143,6 @@ public: std::function continuation; QFutureInterfaceBasePrivate *continuationData = nullptr; - enum ContinuationState : quint8 { Default, Canceled, Cleaned }; - std::atomic continuationState { Default }; - RefCount refCount = 1; QAtomicInt state; // reads and writes can happen unprotected, both must be atomic @@ -163,6 +160,9 @@ public: bool isValid = false; bool hasException = false; + enum ContinuationState : quint8 { Default, Canceled, Cleaned }; + std::atomic continuationState { Default }; + inline QThreadPool *pool() const { return m_pool ? m_pool : QThreadPool::globalInstance(); }