diff options
-rw-r--r-- | src/chmtx.c | 12 | ||||
-rw-r--r-- | todo.txt | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/chmtx.c b/src/chmtx.c index e441a5729..ffcab9d2f 100644 --- a/src/chmtx.c +++ b/src/chmtx.c @@ -83,20 +83,26 @@ void chMtxLockS(Mutex *mp) { switch (tp->p_state) { /* thread tp is waiting on a mutex? */ case PRWTMTX: - /* requeue tp with its new priority on the mutex wait queue */ + /* Requeues tp with its new priority on the mutex wait queue. */ prio_insert(dequeue(tp), &tp->p_wtmtxp->m_queue); /* boost the owner of this mutex if needed */ tp = tp->p_wtmtxp->m_owner; continue; +#if CH_USE_SEMAPHORES_PRIORITY + case PRWTSEM: + /* Requeues tp with its new priority on the semaphore queue. */ + prio_insert(dequeue(tp), &tp->p_wtsemp->s_queue); + break; +#endif #if CH_USE_MESSAGES_PRIORITY case PRSNDMSG: - /* requeue tp with its new priority on (?) */ + /* Requeues tp with its new priority on the server thread queue. */ prio_insert(dequeue(tp), &tp->p_wtthdp->p_msgqueue); break; #endif /* thread tp is ready? */ case PRREADY: - /* requeue tp with its new priority on the ready list */ + /* Requeue tp with its new priority on the ready list. */ chSchReadyI(dequeue(tp)); } break; @@ -5,7 +5,7 @@ After 1.0.0: X OSEK-style chSysSuspendAll()/chSysResumeAll()/chSysEnable()/chSysDisable().
- OSEK-style simple tasks within the idle thread.
- Think to something for threads restart.
-- lwIP TCP/IP stack integration.
+X lwIP TCP/IP stack integration.
- Minimal optional C-runtime library (complete enough for lwIP).
- Multiple heaps, disjoint heaps, heaps in heaps.
- Multiple debug levels.
|