Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* ========================================================================= | * ========================================================================= | ||||
* threads | * threads | ||||
* ========================================================================= | * ========================================================================= | ||||
*/ | */ | ||||
/*ARGSUSED*/ | /*ARGSUSED*/ | ||||
kthread_t * | kthread_t * | ||||
zk_thread_create(void (*func)(), void *arg) | zk_thread_create(void (*func)(void *), void *arg) | ||||
{ | { | ||||
thread_t tid; | thread_t tid; | ||||
VERIFY(thr_create(0, 0, (void *(*)(void *))func, arg, THR_DETACHED, | VERIFY(thr_create(0, 0, (void *(*)(void *))func, arg, THR_DETACHED, | ||||
&tid) == 0); | &tid) == 0); | ||||
return ((void *)(uintptr_t)tid); | return ((void *)(uintptr_t)tid); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,141 Lines • Show Last 20 Lines |