rust/src/rt/rust_task_list.cpp
Marijn Haverbeke 9a7576fe2c Move to macro-based logging checks in the C++ code
No functions should be called for log statements that turn out to be
inactive.
2011-04-07 15:15:30 -07:00

17 lines
400 B
C++

#include "rust_internal.h"
rust_task_list::rust_task_list (rust_dom *dom, const char* name) :
dom(dom), name(name) {
// Nop;
}
void
rust_task_list::delete_all() {
DLOG(dom, rust_log::TASK, "deleting all %s tasks", name);
while (is_empty() == false) {
rust_task *task = pop_value();
DLOG(dom, rust_log::TASK, "deleting task " PTR, task);
delete task;
}
}