27 #ifndef GPGFRONTEND_TASKRUNNER_H
28 #define GPGFRONTEND_TASKRUNNER_H
33 #include "core/GpgFrontendCore.h"
39 class GPGFRONTEND_CORE_EXPORT
TaskRunner :
public QThread {
58 [[noreturn]]
void run()
override;
67 void PostTask(
Task* task);
Definition: TaskRunner.h:39
std::mutex tasks_mutex_
The task queue mutex.
Definition: TaskRunner.h:72
std::map< std::string, Task * > pending_tasks_
The pending tasks.
Definition: TaskRunner.h:71
std::queue< Task * > tasks
The task queue.
Definition: TaskRunner.h:70
virtual ~TaskRunner() override
Destroy the Task Runner object.
TaskRunner()
Construct a new Task Runner object.
Definition: CtxCheckTask.h:33