From c6034bb8955a1cd3a730f2282153ea8655279f12 Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 1 Feb 2008 13:44:51 +0000 Subject: [PATCH] Typo; fix doc. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1080 38d2e660-2303-0410-9eaa-f027e97ec537 --- kern/signal.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kern/signal.c b/kern/signal.c index 61942517..ffb27cda 100644 --- a/kern/signal.c +++ b/kern/signal.c @@ -119,7 +119,7 @@ sigmask_t sig_check(sigmask_t sigs) /** * Sleep until any of the signals in \a sigs occurs. - * \return the signal(s) that have awaked the process. + * \return the signal(s) that have awoken the process. */ sigmask_t sig_wait(sigmask_t sigs) { @@ -150,8 +150,8 @@ sigmask_t sig_wait(sigmask_t sigs) /** * Sleep until any of the signals in \a sigs or \a timeout ticks elapse. * If the timeout elapse a SIG_TIMEOUT is added to the received signal(s). - * \return the signal(s) that have awaked the process. - * \note Caller must check return value to check which signal has awaked the process. + * \return the signal(s) that have awoken the process. + * \note Caller must check return value to check which signal awoke the process. */ sigmask_t sig_waitTimeout(sigmask_t sigs, ticks_t timeout) { @@ -162,7 +162,7 @@ sigmask_t sig_waitTimeout(sigmask_t sigs, ticks_t timeout) ASSERT(!sig_check(SIG_TIMEOUT)); ASSERT(!(sigs & SIG_TIMEOUT)); /* IRQ are needed to run timer */ - ASSERT(IRQ_ENABLED); + ASSERT(IRQ_ENABLED()); timer_set_event_signal(&t, proc_current(), SIG_TIMEOUT); timer_setDelay(&t, timeout); @@ -179,7 +179,7 @@ sigmask_t sig_waitTimeout(sigmask_t sigs, ticks_t timeout) /** * Send the signals \a sigs to the process \a proc. - * The process will be awaken if it was waiting for any of them. + * The process will be awoken if it was waiting for any of them. * * \note This call is interrupt safe. */ @@ -191,7 +191,7 @@ void sig_signal(Process *proc, sigmask_t sigs) /* Set the signals */ proc->sig_recv |= sigs; - /* Check if process needs to be awaken */ + /* Check if process needs to be awoken */ if (proc->sig_recv & proc->sig_wait) { /* Wake up process and enqueue in ready list */ -- 2.25.1