schedule: add scheduler, thread_yield(), etc.
[c11tester.git] / libthreads.h
index 1323cef896f3603b4518d09f8a754e61af94e7c4..ff6d5aa975770cd1d5780e3c24ecc1a2db1ab51d 100644 (file)
@@ -18,6 +18,7 @@ struct thread {
        ucontext_t context;
        void *stack;
        int index;
+       int completed;
 };
 
 int thread_create(struct thread *t, void (*start_routine), void *arg);