git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1753 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
0ebd06ee97
commit
55e8eabccb
|
@ -112,7 +112,6 @@ void chSchGoSleepS(tstate_t newstate) {
|
|||
static void wakeup(void *p) {
|
||||
Thread *tp = (Thread *)p;
|
||||
|
||||
tp->p_u.rdymsg = RDY_TIMEOUT;
|
||||
#if CH_USE_SEMAPHORES || (CH_USE_CONDVARS && CH_USE_CONDVARS_TIMEOUT)
|
||||
switch (tp->p_state) {
|
||||
#if CH_USE_SEMAPHORES
|
||||
|
@ -127,6 +126,8 @@ static void wakeup(void *p) {
|
|||
dequeue(tp);
|
||||
}
|
||||
#endif
|
||||
/* Done this way in order to allow a tail call.*/
|
||||
tp->p_u.rdymsg = RDY_TIMEOUT;
|
||||
chSchReadyI(tp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue