version 1.6, 2012/03/13 10:01:59
|
version 1.6.2.2, 2012/04/26 08:03:27
|
Line 484 schedRun(sched_root_task_t * __restrict root, volatile
|
Line 484 schedRun(sched_root_task_t * __restrict root, volatile
|
if (root->root_hooks.hook_exec.fetch) { |
if (root->root_hooks.hook_exec.fetch) { |
if (killState) { |
if (killState) { |
if (root->root_hooks.hook_exec.condition) |
if (root->root_hooks.hook_exec.condition) |
while (root->root_hooks.hook_exec.condition(root, (void*) killState)) { | while (root && root->root_hooks.hook_exec.condition(root, (void*) killState)) { |
if ((task = root->root_hooks.hook_exec.fetch(root, NULL))) |
if ((task = root->root_hooks.hook_exec.fetch(root, NULL))) |
schedCall(task); |
schedCall(task); |
} |
} |
else |
else |
while (!*killState) { | while (!*killState && root) { |
if ((task = root->root_hooks.hook_exec.fetch(root, NULL))) |
if ((task = root->root_hooks.hook_exec.fetch(root, NULL))) |
schedCall(task); |
schedCall(task); |
} |
} |
} else |
} else |
while ((task = root->root_hooks.hook_exec.fetch(root, NULL))) | while (root) |
schedCall(task); | if ((task = root->root_hooks.hook_exec.fetch(root, NULL))) |
| schedCall(task); |
} |
} |
|
|
return 0; |
return 0; |