projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libatomic: add atomic_init()
[model-checker.git]
/
userprog.c
diff --git
a/userprog.c
b/userprog.c
index bab9f982a614c209c37acd84a06f41ffe061b35b..2847c1af8e55d69acfe4d7cffc65924bd0b96f46 100644
(file)
--- a/
userprog.c
+++ b/
userprog.c
@@
-28,6
+28,8
@@
void user_main()
thrd_t t1, t2;
atomic_int obj;
+ atomic_init(&obj, 0);
+
printf("Creating 2 threads\n");
thrd_create(&t1, (thrd_start_t)&a, &obj);
thrd_create(&t2, (thrd_start_t)&a, &obj);