aboutsummaryrefslogtreecommitdiffstats
path: root/test/testmtx.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-10-15 18:26:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-10-15 18:26:16 +0000
commit875c8f368683e77371f75c0b9f1aa18237f118f2 (patch)
tree960b33a15794765955b8f87d8bdc69eab2a369ef /test/testmtx.c
parente6757ceef9a5d80d1102b6b4215929c719a4b96a (diff)
downloadChibiOS-875c8f368683e77371f75c0b9f1aa18237f118f2.tar.gz
ChibiOS-875c8f368683e77371f75c0b9f1aa18237f118f2.tar.bz2
ChibiOS-875c8f368683e77371f75c0b9f1aa18237f118f2.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@468 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testmtx.c')
-rw-r--r--test/testmtx.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/testmtx.c b/test/testmtx.c
index 3954e9338..f389ebe6f 100644
--- a/test/testmtx.c
+++ b/test/testmtx.c
@@ -85,7 +85,7 @@ static void mtx2_teardown(void) {
static msg_t thread2(void *p) {
- chThdSleep(5);
+ chThdSleep(MS2ST(10));
chMtxLock(&m1);
chMtxUnlock();
test_emit_token(*(char *)p);
@@ -95,7 +95,7 @@ static msg_t thread2(void *p) {
static msg_t thread3(void *p) {
chMtxLock(&m1);
- chThdSleep(20);
+ chThdSleep(MS2ST(40));
chMtxUnlock();
test_emit_token(*(char *)p);
return 0;
@@ -103,7 +103,7 @@ static msg_t thread3(void *p) {
static msg_t thread4(void *p) {
- chThdSleep(10);
+ chThdSleep(MS2ST(20));
test_cpu_pulse(50);
test_emit_token(*(char *)p);
return 0;
@@ -156,7 +156,7 @@ static msg_t thread5(void *p) {
static msg_t thread6(void *p) {
- chThdSleep(10);
+ chThdSleep(MS2ST(10));
chMtxLock(&m2);
test_cpu_pulse(20);
chMtxLock(&m1);
@@ -170,7 +170,7 @@ static msg_t thread6(void *p) {
static msg_t thread7(void *p) {
- chThdSleep(20);
+ chThdSleep(MS2ST(20));
chMtxLock(&m2);
test_cpu_pulse(50);
chMtxUnlock();
@@ -180,7 +180,7 @@ static msg_t thread7(void *p) {
static msg_t thread8(void *p) {
- chThdSleep(40);
+ chThdSleep(MS2ST(40));
test_cpu_pulse(200);
test_emit_token(*(char *)p);
return 0;
@@ -188,7 +188,7 @@ static msg_t thread8(void *p) {
static msg_t thread9(void *p) {
- chThdSleep(50);
+ chThdSleep(MS2ST(50));
chMtxLock(&m2);
test_cpu_pulse(50);
chMtxUnlock();