From fa22551743ab5c9829f911a9c69cfcd7f3b2c5cb Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 26 Jul 2008 09:50:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@362 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chcond.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/chcond.c b/src/chcond.c index cdfeb5d28..668333b10 100644 --- a/src/chcond.c +++ b/src/chcond.c @@ -111,8 +111,8 @@ msg_t chCondWait(CondVar *cp, Mutex *mp) { return msg; } -msg_t chCondWaitS(CondVar *cp, Mutex *mp) -{ +msg_t chCondWaitS(CondVar *cp, Mutex *mp) { + /* lock the mutex that protects access to the condition variable */ chMtxLockS(mp); /* wait on the condition variable */ -- cgit v1.2.3