// FIXME: use sleeping lock once implemented
Lock::SpinLock threadlist_lock;
- typedef void (*thread_func)(void *arg);
+ typedef void (*thread_func)(void *arg1, void *arg2);
- Thread *new_thread(thread_func func, void *arg, char *name = NULL);
+ Thread *new_thread(thread_func func, void *arg1, void *arg2 = NULL,
+ char *name = NULL);
void schedule();
void sched_new_thread();