Small extension of scheduler
diff --git a/scheduler/scheduler.cc b/scheduler/scheduler.cc
index 225e484..7bdf2d6 100644
--- a/scheduler/scheduler.cc
+++ b/scheduler/scheduler.cc
@@ -114,6 +114,12 @@
return false;
}
+virtual void
+Scheduler::deleteTask(TaskPtr task)
+{
+ deleteTask (task->tag ());
+}
+
void
Scheduler::rescheduleTask(const Task::Tag &tag)
{
diff --git a/scheduler/scheduler.h b/scheduler/scheduler.h
index f6f1fe8..e3487a9 100644
--- a/scheduler/scheduler.h
+++ b/scheduler/scheduler.h
@@ -60,6 +60,10 @@
virtual bool
addTask(const TaskPtr &task);
+ // delete task by task->tag, regardless of whether it's invoked or not
+ virtual void
+ deleteTask(TaskPtr task);
+
// delete task by tag, regardless of whether it's invoked or not
// if no task is found, no effect
virtual void