diff options
Diffstat (limited to 'os/rt')
-rw-r--r-- | os/rt/include/chmtx.h | 4 | ||||
-rw-r--r-- | os/rt/src/chcond.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/os/rt/include/chmtx.h b/os/rt/include/chmtx.h index 30367a1ab..9a7f2163d 100644 --- a/os/rt/include/chmtx.h +++ b/os/rt/include/chmtx.h @@ -136,8 +136,10 @@ static inline bool chMtxQueueNotEmptyS(mutex_t *mp) { *
* @return A pointer to the next mutex in the stack.
* @retval NULL if the stack is empty.
+ *
+ * @sclass
*/
-static inline mutex_t *chMtxGetNextMutex(void) {
+static inline mutex_t *chMtxGetNextMutexS(void) {
return chThdGetSelfX()->p_mtxlist;
}
diff --git a/os/rt/src/chcond.c b/os/rt/src/chcond.c index 18c0e1c8c..f56f508b0 100644 --- a/os/rt/src/chcond.c +++ b/os/rt/src/chcond.c @@ -210,7 +210,7 @@ msg_t chCondWaitS(condition_variable_t *cp) { chDbgCheck(cp != NULL);
chDbgAssert(ctp->p_mtxlist != NULL, "not owning a mutex");
- mp = chMtxGetNextMutex();
+ mp = chMtxGetNextMutexS();
chMtxUnlockS(mp);
ctp->p_u.wtobjp = cp;
queue_prio_insert(ctp, &cp->c_queue);
@@ -294,7 +294,7 @@ msg_t chCondWaitTimeoutS(condition_variable_t *cp, systime_t time) { chDbgCheck((cp != NULL) && (time != TIME_IMMEDIATE));
chDbgAssert(currp->p_mtxlist != NULL, "not owning a mutex");
- mp = chMtxGetNextMutex();
+ mp = chMtxGetNextMutexS();
chMtxUnlockS(mp);
currp->p_u.wtobjp = cp;
queue_prio_insert(currp, &cp->c_queue);
|