projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
README.md: move copyright down
[model-checker.git]
/
test
/
linuxrwlocks.c
diff --git
a/test/linuxrwlocks.c
b/test/linuxrwlocks.c
index 896ae30b2dd54cd97f4e18fda4de60face50e018..7e317aa9fcf019b91336823985d5054c9b23166d 100644
(file)
--- a/
test/linuxrwlocks.c
+++ b/
test/linuxrwlocks.c
@@
-1,8
+1,8
@@
#include <stdio.h>
#include <stdio.h>
+#include <threads.h>
+#include <stdatomic.h>
-#include "libthreads.h"
#include "librace.h"
#include "librace.h"
-#include "stdatomic.h"
#define RW_LOCK_BIAS 0x00100000
#define WRITE_LOCK_CMP RW_LOCK_BIAS
#define RW_LOCK_BIAS 0x00100000
#define WRITE_LOCK_CMP RW_LOCK_BIAS
@@
-97,7
+97,7
@@
static void a(void *obj)
}
}
}
}
-
void user_main(
)
+
int user_main(int argc, char **argv
)
{
thrd_t t1, t2;
atomic_init(&mylock.lock, RW_LOCK_BIAS);
{
thrd_t t1, t2;
atomic_init(&mylock.lock, RW_LOCK_BIAS);
@@
-107,4
+107,6
@@
void user_main()
thrd_join(t1);
thrd_join(t2);
thrd_join(t1);
thrd_join(t2);
+
+ return 0;
}
}