mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refs #439 Adjust noexcept specification of worker methods commonly used in destructors.
This commit is contained in:
@@ -41,7 +41,7 @@ namespace BlackMisc
|
||||
QMetaObject::invokeMethod(this, "deleteLater");
|
||||
}
|
||||
|
||||
void CWorkerBase::waitForFinished()
|
||||
void CWorkerBase::waitForFinished() Q_DECL_NOEXCEPT
|
||||
{
|
||||
QMutex mutex;
|
||||
QMutexLocker waitCondLock(&mutex);
|
||||
@@ -75,12 +75,12 @@ namespace BlackMisc
|
||||
thread->start(priority);
|
||||
}
|
||||
|
||||
void CContinuousWorker::quit()
|
||||
void CContinuousWorker::quit() Q_DECL_NOEXCEPT
|
||||
{
|
||||
thread()->quit();
|
||||
}
|
||||
|
||||
void CContinuousWorker::quitAndWait()
|
||||
void CContinuousWorker::quitAndWait() Q_DECL_NOEXCEPT
|
||||
{
|
||||
auto *ownThread = thread();
|
||||
quit();
|
||||
|
||||
Reference in New Issue
Block a user