projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: don't relay on thrd_current() returning an int
[model-checker.git]
/
test
/
thinair.c
diff --git
a/test/thinair.c
b/test/thinair.c
index dcd7615f20148db7ef30b6aa165b7a927bb23b57..2f4f58059f97107f0572e91e21f02b3437e455bc 100644
(file)
--- a/
test/thinair.c
+++ b/
test/thinair.c
@@
-29,13
+29,13
@@
int user_main(int argc, char **argv)
atomic_init(&x, -1);
atomic_init(&y, 0);
atomic_init(&x, -1);
atomic_init(&y, 0);
- printf("
Thread %d: creating 2 threads\n", thrd_current()
);
+ printf("
Main thread: creating 2 threads\n"
);
thrd_create(&t1, (thrd_start_t)&a, NULL);
thrd_create(&t2, (thrd_start_t)&b, NULL);
thrd_join(t1);
thrd_join(t2);
thrd_create(&t1, (thrd_start_t)&a, NULL);
thrd_create(&t2, (thrd_start_t)&b, NULL);
thrd_join(t1);
thrd_join(t2);
- printf("
Thread %d is finished\n", thrd_current()
);
+ printf("
Main thread is finished\n"
);
return 0;
}
return 0;
}