79
82
void releaseProgress(int value);
80
83
int acquireProgress() const;
84
int loadProgress() const;
82
86
template< typename Future >
83
87
void processResults(Future future);
96
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
100
#if QT_VERSION > QT_VERSION_CHECK(5,0,0)
98
102
inline void SearchTask::setCancellation()
100
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
102
m_wasCanceled.storeRelaxed(Canceled);
106
m_wasCanceled.store(Canceled);
104
m_wasCanceled.storeRelease(Canceled);
111
107
inline void SearchTask::resetCancellation()
113
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
115
m_wasCanceled.storeRelaxed(NotCanceled);
119
m_wasCanceled.store(NotCanceled);
109
m_wasCanceled.storeRelease(NotCanceled);
124
112
inline bool SearchTask::testCancellation()
126
return loadCancellation() != NotCanceled;
114
return m_wasCanceled.load() != NotCanceled;
129
117
inline int SearchTask::loadCancellation() const
131
#if QT_VERSION > QT_VERSION_CHECK(5,14,0)
133
return m_wasCanceled.loadRelaxed();
137
119
return m_wasCanceled.load();
142
122
inline void SearchTask::releaseProgress(int value)
149
129
return m_progress.loadAcquire();
132
inline int SearchTask::loadProgress() const
134
return m_progress.load();
154
139
inline void SearchTask::setCancellation()
156
m_wasCanceled.fetchAndStoreRelaxed(Canceled);
141
m_wasCanceled.fetchAndStoreRelease(Canceled);
159
144
inline void SearchTask::resetCancellation()
161
m_wasCanceled.fetchAndStoreRelaxed(NotCanceled);
146
m_wasCanceled.fetchAndStoreRelease(NotCanceled);
164
149
inline bool SearchTask::testCancellation()