aboutsummaryrefslogtreecommitdiffstats
path: root/test/rt/testmtx.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-10-14 12:37:35 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-10-14 12:37:35 +0000
commite571ffd6484806851a4a37cd791508cfce122d40 (patch)
treeaf020e293a087c127dadda591adeaf98680c3a5a /test/rt/testmtx.c
parent3b0fd0fa92ec80455944ff3313b24df0644d73a9 (diff)
downloadChibiOS-e571ffd6484806851a4a37cd791508cfce122d40.tar.gz
ChibiOS-e571ffd6484806851a4a37cd791508cfce122d40.tar.bz2
ChibiOS-e571ffd6484806851a4a37cd791508cfce122d40.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7395 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt/testmtx.c')
-rw-r--r--test/rt/testmtx.c14
1 files changed, 7 insertions, 7 deletions
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;
}