Lines Matching refs:uthread
19 static struct uthread main_thread = {
23 static struct uthread *current = &main_thread;
35 struct uthread *curr = current; in uthread_trampoline()
49 static void uthread_free(struct uthread *uthread) in uthread_free() argument
51 if (!uthread) in uthread_free()
53 free(uthread->stack); in uthread_free()
54 free(uthread); in uthread_free()
57 int uthread_create(struct uthread *uthr, void (*fn)(void *), void *arg, in uthread_create()
97 static void uthread_resume(struct uthread *uthread) in uthread_resume() argument
100 current = uthread; in uthread_resume()
101 longjmp(uthread->ctx, 1); in uthread_resume()
107 struct uthread *next; in uthread_schedule()
108 struct uthread *tmp; in uthread_schedule()
131 struct uthread *next; in uthread_grp_done()