aboutsummaryrefslogtreecommitdiffstats
path: root/src/chmtx.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-09 11:17:02 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-09 11:17:02 +0000
commita2bab9c63d848ccfce1440afd40e1eed7b2955ef (patch)
tree4ea1f9626299ab6aa751f0e283fb5279ea1e60c9 /src/chmtx.c
parent18a4e9013ef9d822c9b6a35cbac4cd3eea20eb51 (diff)
downloadChibiOS-a2bab9c63d848ccfce1440afd40e1eed7b2955ef.tar.gz
ChibiOS-a2bab9c63d848ccfce1440afd40e1eed7b2955ef.tar.bz2
ChibiOS-a2bab9c63d848ccfce1440afd40e1eed7b2955ef.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@825 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chmtx.c')
-rw-r--r--src/chmtx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/chmtx.c b/src/chmtx.c
index 396825735..b1d32d220 100644
--- a/src/chmtx.c
+++ b/src/chmtx.c
@@ -93,6 +93,12 @@ void chMtxLockS(Mutex *mp) {
/* boost the owner of this mutex if needed */
tp = tp->p_wtmtxp->m_owner;
continue;
+#if CH_USE_CONDVARS
+ case PRWTCOND:
+ /* Requeues tp with its new priority on the condvar queue. */
+ prio_insert(dequeue(tp), &tp->p_wtcondp->c_queue);
+ break;
+#endif
#if CH_USE_SEMAPHORES_PRIORITY
case PRWTSEM:
/* Requeues tp with its new priority on the semaphore queue. */