projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merging stuff...made need to clean up some stuff...but need to push it somewhere...
[c11tester.git]
/
userprog.c
diff --git
a/userprog.c
b/userprog.c
index 402cb0d29128aadef5cf67c71a8ca9cf976f4922..0948f0bc395a5d103963e99d81592ac6e2307072 100644
(file)
--- a/
userprog.c
+++ b/
userprog.c
@@
-14,7
+14,7
@@
static void a(atomic_int *obj)
for (i = 0; i < 2; i++) {
printf("Thread %d, loop %d\n", thrd_current(), i);
for (i = 0; i < 2; i++) {
printf("Thread %d, loop %d\n", thrd_current(), i);
- switch (i
% 4
) {
+ switch (i
) {
case 1:
ret = atomic_load(obj);
printf("Read value: %d\n", ret);
case 1:
ret = atomic_load(obj);
printf("Read value: %d\n", ret);