diff options
author | saturneric <[email protected]> | 2023-10-19 10:51:20 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-19 10:51:20 +0000 |
commit | 025c268f91ee1deab17891f00dc8c90c4770224f (patch) | |
tree | 3454263c7e5d4545bc5bac624eba17ca71257654 /src/core/thread/TaskRunner.h | |
parent | feat: using pool for concurrent executions, not stable yet (diff) | |
download | GpgFrontend-025c268f91ee1deab17891f00dc8c90c4770224f.tar.gz GpgFrontend-025c268f91ee1deab17891f00dc8c90c4770224f.zip |
fix: improve the stability of thread system
Diffstat (limited to 'src/core/thread/TaskRunner.h')
-rw-r--r-- | src/core/thread/TaskRunner.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/thread/TaskRunner.h b/src/core/thread/TaskRunner.h index 25187178..a4f9c98b 100644 --- a/src/core/thread/TaskRunner.h +++ b/src/core/thread/TaskRunner.h @@ -29,6 +29,8 @@ #ifndef GPGFRONTEND_TASKRUNNER_H #define GPGFRONTEND_TASKRUNNER_H +#include <vector> + #include "core/GpgFrontendCore.h" namespace GpgFrontend::Thread { @@ -69,6 +71,13 @@ class GPGFRONTEND_CORE_EXPORT TaskRunner : public QObject { * @brief * * @param task + */ + void PostConcurrentTask(Task* task); + + /** + * @brief + * + * @param task * @param seconds */ void PostScheduleTask(Task* task, size_t seconds); |