git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2188 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
5b3fec0235
commit
79b466c6f8
|
@ -129,12 +129,12 @@ void chSchGoSleepS(tstate_t newstate) {
|
||||||
static void wakeup(void *p) {
|
static void wakeup(void *p) {
|
||||||
Thread *tp = (Thread *)p;
|
Thread *tp = (Thread *)p;
|
||||||
|
|
||||||
#if CH_USE_SEMAPHORES || (CH_USE_CONDVARS && CH_USE_CONDVARS_TIMEOUT)
|
|
||||||
switch (tp->p_state) {
|
switch (tp->p_state) {
|
||||||
case THD_STATE_READY:
|
case THD_STATE_READY:
|
||||||
/* Handling the special case where the thread has been made ready by
|
/* Handling the special case where the thread has been made ready by
|
||||||
another thread with higher priority.*/
|
another thread with higher priority.*/
|
||||||
return;
|
return;
|
||||||
|
#if CH_USE_SEMAPHORES || (CH_USE_CONDVARS && CH_USE_CONDVARS_TIMEOUT)
|
||||||
#if CH_USE_SEMAPHORES
|
#if CH_USE_SEMAPHORES
|
||||||
case THD_STATE_WTSEM:
|
case THD_STATE_WTSEM:
|
||||||
chSemFastSignalI((Semaphore *)tp->p_u.wtobjp);
|
chSemFastSignalI((Semaphore *)tp->p_u.wtobjp);
|
||||||
|
@ -145,8 +145,8 @@ static void wakeup(void *p) {
|
||||||
#endif
|
#endif
|
||||||
/* States requiring dequeuing.*/
|
/* States requiring dequeuing.*/
|
||||||
dequeue(tp);
|
dequeue(tp);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
tp->p_u.rdymsg = RDY_TIMEOUT;
|
tp->p_u.rdymsg = RDY_TIMEOUT;
|
||||||
chSchReadyI(tp);
|
chSchReadyI(tp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue