aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/thread/TaskRunner.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-15 13:14:17 +0000
committersaturneric <[email protected]>2023-12-15 13:14:17 +0000
commitf9a49043c35e73fc2d4ffb3ed9b39c33849c43b3 (patch)
tree7e03b0b62119ff5d5dcd732ec1ccb7d2296df86d /src/core/thread/TaskRunner.h
parentfix: slove some issues on memory and intilizations (diff)
downloadGpgFrontend-f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3.tar.gz
GpgFrontend-f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3.zip
fix: slove threading and memory issues
Diffstat (limited to 'src/core/thread/TaskRunner.h')
-rw-r--r--src/core/thread/TaskRunner.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/core/thread/TaskRunner.h b/src/core/thread/TaskRunner.h
index 4df1d465..8661dbd4 100644
--- a/src/core/thread/TaskRunner.h
+++ b/src/core/thread/TaskRunner.h
@@ -49,11 +49,32 @@ class GPGFRONTEND_CORE_EXPORT TaskRunner : public QObject {
*/
virtual ~TaskRunner() override;
+ /**
+ * @brief
+ *
+ */
void Start();
- QThread* GetThread();
+ /**
+ * @brief
+ *
+ */
+ void Stop();
+
+ /**
+ * @brief Get the Thread object
+ *
+ * @return QThread*
+ */
+ auto GetThread() -> QThread*;
- bool IsRunning();
+ /**
+ * @brief
+ *
+ * @return true
+ * @return false
+ */
+ auto IsRunning() -> bool;
public slots: