diff options
author | saturneric <[email protected]> | 2023-10-23 13:23:37 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-23 13:23:37 +0000 |
commit | 5a3f422335b27c6c19a2d91f525c77435e8f2384 (patch) | |
tree | a72d417cc040f07fd7e21f9bd2cc70d0de5e8bed /src/core/thread/TaskRunner.cpp | |
parent | perf: reduce header includes and improve build speed (diff) | |
download | GpgFrontend-5a3f422335b27c6c19a2d91f525c77435e8f2384.tar.gz GpgFrontend-5a3f422335b27c6c19a2d91f525c77435e8f2384.zip |
fix: solve some issues on log system
Diffstat (limited to 'src/core/thread/TaskRunner.cpp')
-rw-r--r-- | src/core/thread/TaskRunner.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/thread/TaskRunner.cpp b/src/core/thread/TaskRunner.cpp index 2035fe67..8250bb5b 100644 --- a/src/core/thread/TaskRunner.cpp +++ b/src/core/thread/TaskRunner.cpp @@ -28,6 +28,7 @@ #include "core/thread/TaskRunner.h" +#include <qobject.h> #include <qobjectdefs.h> #include <qthread.h> #include <qthreadpool.h> @@ -41,6 +42,11 @@ namespace GpgFrontend::Thread { class TaskRunner::Impl : public QThread { public: + Impl() { + SPDLOG_TRACE("task runner created, thread id: {}", + QThread::currentThread()->currentThreadId()); + } + void PostTask(Task* task) { if (task == nullptr) { SPDLOG_ERROR("task posted is null"); |