From: Keith Packard Date: Mon, 2 Nov 2009 23:45:42 +0000 (-0800) Subject: Disable interrupts while removing tasks from task list X-Git-Tag: 0.6~2 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=b92333ff5e75bf96804359e9fbf464d3b518bd95 Disable interrupts while removing tasks from task list --- diff --git a/src/ao_task.c b/src/ao_task.c index 14aa84c8..4664163d 100644 --- a/src/ao_task.c +++ b/src/ao_task.c @@ -228,7 +228,7 @@ ao_wake_task(__xdata struct ao_task *task) } void -ao_exit(void) +ao_exit(void) __critical { uint8_t i; ao_num_tasks--;