mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05:34 +08:00
refactor: Fix clang-tidy warnings
This commit is contained in:
@@ -43,11 +43,11 @@ namespace swift::misc
|
||||
CRegularThread(QObject *parent = nullptr) : QThread(parent) {}
|
||||
|
||||
//! Destructor
|
||||
virtual ~CRegularThread() override;
|
||||
~CRegularThread() override;
|
||||
|
||||
protected:
|
||||
//! \copydoc QThread::run
|
||||
virtual void run() override;
|
||||
void run() override;
|
||||
|
||||
private:
|
||||
std::atomic<void *> m_handle { nullptr };
|
||||
@@ -148,7 +148,7 @@ namespace swift::misc
|
||||
CWorkerBase();
|
||||
|
||||
//! Destructor.
|
||||
virtual ~CWorkerBase() override;
|
||||
~CWorkerBase() override;
|
||||
|
||||
//! For the task to check whether it can finish early.
|
||||
//! \threadsafe
|
||||
@@ -289,11 +289,11 @@ namespace swift::misc
|
||||
//! Stops the thread the next time around its event loop.
|
||||
//! The thread and the worker will then be deleted.
|
||||
//! \threadsafe
|
||||
virtual void quit() noexcept final override;
|
||||
void quit() noexcept final;
|
||||
|
||||
//! Calls quit() and blocks until the thread is finished.
|
||||
//! \threadsafe Will deadlock if called by the worker thread.
|
||||
virtual void quitAndWait() noexcept final override;
|
||||
void quitAndWait() noexcept final;
|
||||
|
||||
//! Enabled (running)?
|
||||
//! \threadsafe
|
||||
|
||||
Reference in New Issue
Block a user