projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
impatomic: add strong/weak compare_exchange
[model-checker.git]
/
test
/
pending-release.c
diff --git
a/test/pending-release.c
b/test/pending-release.c
index f3ae9f43420b2cdc5de5e8cf59cf4c72921ecba9..e518e422379fdb3b952a2aec8c4d84b17b2c8da5 100644
(file)
--- a/
test/pending-release.c
+++ b/
test/pending-release.c
@@
-6,10
+6,10
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
+#include <threads.h>
+#include <stdatomic.h>
-#include "libthreads.h"
#include "librace.h"
#include "librace.h"
-#include "stdatomic.h"
atomic_int x;
int var = 0;
atomic_int x;
int var = 0;
@@
-46,7
+46,7
@@
static void c(void *obj)
atomic_store_explicit(&x, 22, memory_order_relaxed);
}
atomic_store_explicit(&x, 22, memory_order_relaxed);
}
-
void user_main(
)
+
int user_main(int argc, char **argv
)
{
thrd_t t1, t2, t5;
int i = 4;
{
thrd_t t1, t2, t5;
int i = 4;
@@
-60,4
+60,6
@@
void user_main()
thrd_join(t1);
thrd_join(t2);
thrd_join(t5);
thrd_join(t1);
thrd_join(t2);
thrd_join(t5);
+
+ return 0;
}
}