feat(Tasks): add ConcurrentTask::clear to allow re-using tasks
This way old runs won't pile up in the internal DSs Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
4f1ea712da
commit
dd578354c4
2 changed files with 21 additions and 0 deletions
|
@ -24,6 +24,11 @@ public:
|
|||
public slots:
|
||||
bool abort() override;
|
||||
|
||||
/** Resets the internal state of the task.
|
||||
* This allows the same task to be re-used.
|
||||
*/
|
||||
void clear();
|
||||
|
||||
protected
|
||||
slots:
|
||||
void executeTask() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue