diff options
| author | Keith Packard <keithp@keithp.com> | 2013-08-26 18:44:23 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-08-26 18:47:27 -0700 | 
| commit | d54156caf856ab5570f050692b333a2c5d991265 (patch) | |
| tree | 9b1800bd660a49f97935fa8fb267f4a179ae08b4 /src | |
| parent | 7e941695aa27e5eaf453ca1128b8d835472410a4 (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')
| -rw-r--r-- | src/core/ao_task.c | 2 | ||||
| -rw-r--r-- | src/core/ao_task.h | 2 | 
2 files changed, 2 insertions, 2 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; diff --git a/src/core/ao_task.h b/src/core/ao_task.h index e3a311ed..9c56b480 100644 --- a/src/core/ao_task.h +++ b/src/core/ao_task.h @@ -70,7 +70,7 @@ ao_sleep(__xdata void *wchan);  /* Wake all tasks sleeping on wchan */  void -ao_wakeup(__xdata void *wchan); +ao_wakeup(__xdata void *wchan) __reentrant;  /* set an alarm to go off in 'delay' ticks */  void  | 
