diff options
author | Keith Packard <keithp@keithp.com> | 2009-10-16 12:59:53 +0900 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-10-16 12:59:53 +0900 |
commit | b657aa209b9ea3b3efd33a940283b3ba60a169af (patch) | |
tree | b1803da45a1413a3758965fedaa554aac636a9dd /src/ao.h | |
parent | d709a0688eff84e25e24d755850ef045d6b0c3de (diff) |
Add ao_wake_task and ao_exit
ao_wake_task signals a specific task to wake up.
ao_exit terminates the current task.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r-- | src/ao.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -63,6 +63,10 @@ ao_sleep(__xdata void *wchan); void ao_wakeup(__xdata void *wchan); +/* Wake up a specific task */ +void +ao_wake_task(__xdata struct ao_task *task); + /* Yield the processor to another task */ void ao_yield(void) _naked; @@ -71,6 +75,10 @@ ao_yield(void) _naked; void ao_add_task(__xdata struct ao_task * task, void (*start)(void), __code char *name) __reentrant; +/* Terminate the current task */ +void +ao_exit(void); + /* Dump task info to console */ void ao_task_info(void); |