diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-13 06:59:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-13 06:59:54 +0000 |
commit | 73642ca0cce31ed6982813a90b89e4de05da76cb (patch) | |
tree | 3a55ba3629daf4d5b13bec0dcee9be1e20771b3d /src/chthreads.c | |
parent | 62645922467a2c748bf081b7eefb6ad775675418 (diff) | |
download | ChibiOS-73642ca0cce31ed6982813a90b89e4de05da76cb.tar.gz ChibiOS-73642ca0cce31ed6982813a90b89e4de05da76cb.tar.bz2 ChibiOS-73642ca0cce31ed6982813a90b89e4de05da76cb.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@48 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chthreads.c')
-rw-r--r-- | src/chthreads.c | 10 |
1 files changed, 5 insertions, 5 deletions
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();
|