From 73642ca0cce31ed6982813a90b89e4de05da76cb Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 13 Oct 2007 06:59:54 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@48 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chthreads.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/chthreads.c') diff --git a/src/chthreads.c b/src/chthreads.c index 28b276db5..00ae04778 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -91,7 +91,7 @@ Thread *chThdCreate(t_prio prio, t_tmode mode, void *workspace, #endif chSysLock(); - chSchWakeupI(tp, RDY_OK); + chSchWakeupS(tp, RDY_OK); chSysUnlock(); #ifdef CH_USE_RESUME @@ -116,7 +116,7 @@ void chThdSetPriority(t_prio newprio) { #else currp->p_prio = newprio; #endif - chSchRescheduleI(); + chSchRescheduleS(); chSysUnlock(); } @@ -135,7 +135,7 @@ void chThdResume(Thread *tp) { chSysLock(); if (tp->p_state == PRSUSPENDED) - chSchWakeupI(tp, RDY_OK); + chSchWakeupS(tp, RDY_OK); chSysUnlock(); } @@ -176,7 +176,7 @@ void chThdExit(t_msg msg) { #ifdef CH_USE_EXIT_EVENT chEvtSendI(&currp->p_exitesource); #endif - chSchGoSleepI(PREXIT); + chSchGoSleepS(PREXIT); chSysUnlock(); /* Never executed. */ } @@ -196,7 +196,7 @@ t_msg chThdWait(Thread *tp) { if (tp->p_state != PREXIT) { list_insert(currp, &tp->p_waiting); - chSchGoSleepI(PRWAIT); + chSchGoSleepS(PRWAIT); } chSysUnlock(); -- cgit v1.2.3