summaryrefslogtreecommitdiff
path: root/src/core/ao_task.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-08-26 18:44:23 -0700
committerKeith Packard <keithp@keithp.com>2013-08-26 18:47:27 -0700
commitd54156caf856ab5570f050692b333a2c5d991265 (patch)
tree9b1800bd660a49f97935fa8fb267f4a179ae08b4 /src/core/ao_task.c
parent7e941695aa27e5eaf453ca1128b8d835472410a4 (diff)
altos: Make ao_wakeup reentrant
In case we end up invoking it from two places at once. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_task.c')
-rw-r--r--src/core/ao_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_task.c b/src/core/ao_task.c
index 0aad6508..18315b1f 100644
--- a/src/core/ao_task.c
+++ b/src/core/ao_task.c
@@ -420,7 +420,7 @@ ao_sleep(__xdata void *wchan)
}
void
-ao_wakeup(__xdata void *wchan)
+ao_wakeup(__xdata void *wchan) __reentrant
{
#if HAS_TASK_QUEUE
struct ao_task *sleep, *next;