297
312
* call. The task's lock may not be held.
298
313
* @param flags Thread flags.
299
314
* @param name Symbolic name (a copy is made).
303
316
* @return New thread's structure on success, NULL on failure.
306
319
thread_t *thread_create(void (* func)(void *), void *arg, task_t *task,
309
322
thread_t *thread = (thread_t *) slab_alloc(thread_slab, 0);