summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
01237c4)
We export this for now. The function will need to change for long-term exported
use though.
return swapcontext(&old->context, &new->context);
}
return swapcontext(&old->context, &new->context);
}
-static int thread_yield()
{
struct thread *old, *next;
{
struct thread *old, *next;
int thread_create(struct thread *t, void (*start_routine), void *arg);
void thread_join(struct thread *t);
int thread_create(struct thread *t, void (*start_routine), void *arg);
void thread_join(struct thread *t);
struct thread *thread_current(void);
#endif /* __LIBTHREADS_H__ */
struct thread *thread_current(void);
#endif /* __LIBTHREADS_H__ */