libatomic: add atomic_init()
[c11tester.git] / userprog.c
index bab9f982a614c209c37acd84a06f41ffe061b35b..2847c1af8e55d69acfe4d7cffc65924bd0b96f46 100644 (file)
@@ -28,6 +28,8 @@ void user_main()
        thrd_t t1, t2;
        atomic_int obj;
 
+       atomic_init(&obj, 0);
+
        printf("Creating 2 threads\n");
        thrd_create(&t1, (thrd_start_t)&a, &obj);
        thrd_create(&t2, (thrd_start_t)&a, &obj);