rootfs/aboriginal-1.4.5/sources/root-filesystem/src/thread-hello2.c
// Create a new thread with associated resources.
Create a new thread with associated resources.
Create a new thread with associated resources .
struct thread_info *newthread(void *(*func)(void *))
{
	struct thread_info *ti = malloc(sizeof(struct thread_info));
	memset(ti, 0, sizeof(struct thread_info));
	pthread_create(&(ti->thread), NULL, func, ti);
	return ti;
}
struct thread_info * newthread ( void * ( * func ) ( void * ) ) { struct thread_info * ti = malloc ( sizeof ( struct thread_info ) ) ; memset ( ti , 0 , sizeof ( struct thread_info ) ) ; pthread_create ( & ( ti -> thread ) , NULL , func , ti ) ; return ti ; }
Create a new thread with associated resources.
Create a new thread with associated resources .