#include <stdio.h>
+#include <threads.h>
+#include <stdatomic.h>
-#include "libthreads.h"
#include "librace.h"
-#include "stdatomic.h"
atomic_int x;
atomic_int y;
printf("r2=%u\n",r2);
}
-void user_main()
+int user_main(int argc, char **argv)
{
thrd_t t1, t2;
thrd_join(t1);
thrd_join(t2);
printf("Thread %d is finished\n", thrd_current());
+
+ return 0;
}