X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flinuxrwlocks.c;h=7e317aa9fcf019b91336823985d5054c9b23166d;hb=2935d5ce8b7315c0b13306b15ac18beeacfc37bb;hp=896ae30b2dd54cd97f4e18fda4de60face50e018;hpb=b46e898002bf7db0b50e4e6ad5e50dadfc0caa8c;p=model-checker.git diff --git a/test/linuxrwlocks.c b/test/linuxrwlocks.c index 896ae30..7e317aa 100644 --- a/test/linuxrwlocks.c +++ b/test/linuxrwlocks.c @@ -1,8 +1,8 @@ #include +#include +#include -#include "libthreads.h" #include "librace.h" -#include "stdatomic.h" #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); @@ -107,4 +107,6 @@ void user_main() thrd_join(t1); thrd_join(t2); + + return 0; }