diff options
Diffstat (limited to 'test/rt')
-rw-r--r-- | test/rt/testmtx.c | 14 |
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;
}
|