From 1d23eb296156769cff3e41bd7026db1cd2538664 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 17 Oct 2008 18:33:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@474 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chmtx.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/chmtx.c') diff --git a/src/chmtx.c b/src/chmtx.c index f5dbaca43..ea3ccccda 100644 --- a/src/chmtx.c +++ b/src/chmtx.c @@ -114,7 +114,8 @@ void chMtxLockS(Mutex *mp) { * the priority inheritance mechanism because it does not try to enter a sleep * state on the mutex. * @param mp pointer to the \p Mutex structure - * @return \p TRUE if the mutex was successfully acquired else \p FALSE + * @retval TRUE if the mutex was successfully acquired + * @retval FALSE if the lock attempt failed. */ bool_t chMtxTryLock(Mutex *mp) { bool_t b; @@ -132,7 +133,8 @@ bool_t chMtxTryLock(Mutex *mp) { * the priority inheritance mechanism because it does not try to enter a sleep * state on the mutex. * @param mp pointer to the \p Mutex structure - * @return \p TRUE if the mutex was successfully acquired else \p FALSE + * @retval TRUE if the mutex was successfully acquired + * @retval FALSE if the lock attempt failed. * @note This function must be called within a \p chSysLock() / \p chSysUnlock() * block. */ @@ -148,6 +150,7 @@ bool_t chMtxTryLockS(Mutex *mp) { /** * Unlocks the next owned mutex in reverse lock order. + * @return The pointer to the unlocked mutex. */ Mutex *chMtxUnlock(void) { Mutex *ump, *mp; @@ -192,6 +195,7 @@ Mutex *chMtxUnlock(void) { /** * Unlocks the next owned mutex in reverse lock order. + * @return The pointer to the unlocked mutex. * @note This function must be called within a \p chSysLock() / \p chSysUnlock() * block. * @note This function does not reschedule internally. -- cgit v1.2.3