| 92 | } |
| 93 | |
| 94 | task::~task() |
| 95 | { |
| 96 | if (running) { |
| 97 | remove_from_runqueue(); |
| 98 | } else { |
| 99 | paused_tasks.remove_paused_task(this); |
| 100 | } |
| 101 | all_tasks.erase(taskit); |
| 102 | } |
| 103 | |
| 104 | /* Put this task in the run queue. */ |
| 105 | void task::add_to_runqueue() |
nothing calls this directly
no test coverage detected