From 390ed322cb8f40cb9250021cde5f48acb928d291 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 20 Jul 2013 07:24:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6001 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/src/chmtx.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'os/kernel/src/chmtx.c') diff --git a/os/kernel/src/chmtx.c b/os/kernel/src/chmtx.c index 84e868a3f..ec191b53d 100644 --- a/os/kernel/src/chmtx.c +++ b/os/kernel/src/chmtx.c @@ -96,7 +96,7 @@ * * @init */ -void chMtxInit(mutex_t *mp) { +void chMtxObjectInit(mutex_t *mp) { chDbgCheck(mp != NULL, "chMtxInit"); @@ -217,13 +217,13 @@ void chMtxLockS(mutex_t *mp) { * * @param[in] mp pointer to the @p mutex_t structure * @return The operation status. - * @retval TRUE if the mutex has been successfully acquired - * @retval FALSE if the lock attempt failed. + * @retval true if the mutex has been successfully acquired + * @retval false if the lock attempt failed. * * @api */ -bool_t chMtxTryLock(mutex_t *mp) { - bool_t b; +bool chMtxTryLock(mutex_t *mp) { + bool b; chSysLock(); @@ -245,23 +245,23 @@ bool_t chMtxTryLock(mutex_t *mp) { * * @param[in] mp pointer to the @p mutex_t structure * @return The operation status. - * @retval TRUE if the mutex has been successfully acquired - * @retval FALSE if the lock attempt failed. + * @retval true if the mutex has been successfully acquired + * @retval false if the lock attempt failed. * * @sclass */ -bool_t chMtxTryLockS(mutex_t *mp) { +bool chMtxTryLockS(mutex_t *mp) { chDbgCheckClassS(); chDbgCheck(mp != NULL, "chMtxTryLockS"); if (mp->m_owner != NULL) - return FALSE; + return false; mp->m_owner = currp; mp->m_next = currp->p_mtxlist; currp->p_mtxlist = mp; - return TRUE; + return true; } /** -- cgit v1.2.3