aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/src/chheap.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-12 09:43:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-12 09:43:27 +0000
commit6c90d27a46cfeb8970eec2cf9d41729202d0e40b (patch)
tree75c38e7256a44bdbaeb3d11c1d5e9ca78c08c09b /os/rt/src/chheap.c
parent1033792b73022cbf5a7ef741313ae18592306251 (diff)
downloadChibiOS-6c90d27a46cfeb8970eec2cf9d41729202d0e40b.tar.gz
ChibiOS-6c90d27a46cfeb8970eec2cf9d41729202d0e40b.tar.bz2
ChibiOS-6c90d27a46cfeb8970eec2cf9d41729202d0e40b.zip
Preparation to recursive mutexes, now unlock primitives have the mutex as parameter.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6706 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/src/chheap.c')
-rw-r--r--os/rt/src/chheap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/src/chheap.c b/os/rt/src/chheap.c
index abda4ff10..5e1e20c3c 100644
--- a/os/rt/src/chheap.c
+++ b/os/rt/src/chheap.c
@@ -47,7 +47,7 @@
*/
#if CH_CFG_USE_MUTEXES || defined(__DOXYGEN__)
#define H_LOCK(h) chMtxLock(&(h)->h_mtx)
-#define H_UNLOCK(h) chMtxUnlock()
+#define H_UNLOCK(h) chMtxUnlock(&(h)->h_mtx)
#else
#define H_LOCK(h) chSemWait(&(h)->h_sem)
#define H_UNLOCK(h) chSemSignal(&(h)->h_sem)