diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-17 18:33:35 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-10-17 18:33:35 +0000 |
commit | 1d23eb296156769cff3e41bd7026db1cd2538664 (patch) | |
tree | 512bbaa17560196c09dcce171bcb28a367838542 /src/chmtx.c | |
parent | 3d3e5728aa1d14444b99732426d36f6375013727 (diff) | |
download | ChibiOS-1d23eb296156769cff3e41bd7026db1cd2538664.tar.gz ChibiOS-1d23eb296156769cff3e41bd7026db1cd2538664.tar.bz2 ChibiOS-1d23eb296156769cff3e41bd7026db1cd2538664.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@474 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chmtx.c')
-rw-r--r-- | src/chmtx.c | 8 |
1 files changed, 6 insertions, 2 deletions
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. |