Disable interrupts while removing tasks from task list
authorKeith Packard <keithp@keithp.com>
Mon, 2 Nov 2009 23:45:42 +0000 (15:45 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 2 Nov 2009 23:45:42 +0000 (15:45 -0800)
src/ao_task.c

index 14aa84c841d698d3a285de7370c80de369c7b56f..4664163d6a1a7ccdd6801575f2b182d58e8d3f6a 100644 (file)
@@ -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--;