aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/thread/TaskRunner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/thread/TaskRunner.cpp')
-rw-r--r--src/core/thread/TaskRunner.cpp6
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");