projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
schedule: add scheduler, thread_yield(), etc.
[c11tester.git]
/
libthreads.h
diff --git
a/libthreads.h
b/libthreads.h
index 1323cef896f3603b4518d09f8a754e61af94e7c4..ff6d5aa975770cd1d5780e3c24ecc1a2db1ab51d 100644
(file)
--- a/
libthreads.h
+++ b/
libthreads.h
@@
-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);