projects
/
cdsspec-compiler.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
action: add ModelAction::get_reads_from_value()
[cdsspec-compiler.git]
/
test
/
deadlock.cc
diff --git
a/test/deadlock.cc
b/test/deadlock.cc
index 3b26bec65261544cae1e0c8f919629e2ef567983..4810aa4525d6cbf66c64f59d5e85b4dce9997f41 100644
(file)
--- a/
test/deadlock.cc
+++ b/
test/deadlock.cc
@@
-34,13
+34,13
@@
int user_main(int argc, char **argv)
x = new std::mutex();
y = new std::mutex();
x = new std::mutex();
y = new std::mutex();
- 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;
}