blob: 96d3d7bd34a2371e772f692f55dc9e018f3b0dc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "rust_internal.h"
rust_task_list::rust_task_list (rust_scheduler *sched, const char* name) :
sched(sched), name(name) {
}
void
rust_task_list::delete_all() {
DLOG(sched, task, "deleting all %s tasks", name);
while (is_empty() == false) {
rust_task *task = pop_value();
DLOG(sched, task, "deleting task " PTR, task);
delete task;
}
}
|