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) {
|
||||
Thread *tp = (Thread *)p;
|
||||
|
||||
#if CH_USE_SEMAPHORES || (CH_USE_CONDVARS && CH_USE_CONDVARS_TIMEOUT)
|
||||
switch (tp->p_state) {
|
||||
case THD_STATE_READY:
|
||||
/* Handling the special case where the thread has been made ready by
|
||||
another thread with higher priority.*/
|
||||
return;
|
||||
#if CH_USE_SEMAPHORES || (CH_USE_CONDVARS && CH_USE_CONDVARS_TIMEOUT)
|
||||
#if CH_USE_SEMAPHORES
|
||||
case THD_STATE_WTSEM:
|
||||
chSemFastSignalI((Semaphore *)tp->p_u.wtobjp);
|
||||
|
@ -145,8 +145,8 @@ static void wakeup(void *p) {
|
|||
#endif
|
||||
/* States requiring dequeuing.*/
|
||||
dequeue(tp);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
tp->p_u.rdymsg = RDY_TIMEOUT;
|
||||
chSchReadyI(tp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue