MCPcopy Create free account
hub / github.com/codr7/hacktical-c / hc_task_list_run

Function hc_task_list_run

task/task.c:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void hc_task_list_run(const struct hc_task_list *tl) {
21 bool all_done = false;
22
23 while (!all_done) {
24 all_done = true;
25
26 hc_list_do(&tl->tasks, i) {
27 struct hc_task *t = hc_baseof(i, struct hc_task, list);
28
29 if (!t->done) {
30 t->body(t);
31 all_done = false;
32 }
33 }
34 }
35}

Callers 1

task_testsFunction · 0.85

Calls

no outgoing calls

Tested by 1

task_testsFunction · 0.68