From e571ffd6484806851a4a37cd791508cfce122d40 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 14 Oct 2014 12:37:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7395 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/rt/testmtx.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/rt/testmtx.c') diff --git a/test/rt/testmtx.c b/test/rt/testmtx.c index ccf7b9497..3fea7036b 100644 --- a/test/rt/testmtx.c +++ b/test/rt/testmtx.c @@ -159,7 +159,7 @@ static msg_t thread2L(void *p) { (void)p; chMtxLock(&m1); test_cpu_pulse(40); - chMtxUnlock(); + chMtxUnlock(&m1); test_cpu_pulse(10); test_emit_token('C'); return 0; @@ -182,7 +182,7 @@ static msg_t thread2H(void *p) { chThdSleepMilliseconds(40); chMtxLock(&m1); test_cpu_pulse(10); - chMtxUnlock(); + chMtxUnlock(&m1); test_emit_token('A'); return 0; } @@ -250,7 +250,7 @@ static msg_t thread3LL(void *p) { (void)p; chMtxLock(&m1); test_cpu_pulse(30); - chMtxUnlock(); + chMtxUnlock(&m1); test_emit_token('E'); return 0; } @@ -264,9 +264,9 @@ static msg_t thread3L(void *p) { test_cpu_pulse(20); chMtxLock(&m1); test_cpu_pulse(10); - chMtxUnlock(); + chMtxUnlock(&m1); test_cpu_pulse(10); - chMtxUnlock(); + chMtxUnlock(&m2); test_emit_token('D'); return 0; } @@ -278,7 +278,7 @@ static msg_t thread3M(void *p) { chThdSleepMilliseconds(20); chMtxLock(&m2); test_cpu_pulse(10); - chMtxUnlock(); + chMtxUnlock(&m2); test_emit_token('C'); return 0; } @@ -300,7 +300,7 @@ static msg_t thread3HH(void *p) { chThdSleepMilliseconds(50); chMtxLock(&m2); test_cpu_pulse(10); - chMtxUnlock(); + chMtxUnlock(&m2); test_emit_token('A'); return 0; } -- cgit v1.2.3