FreeBSD/cddl/compat/opensolaris/misc/thread_pool.c
/*
 * Create a worker thread, with all signals blocked.
 */
Create a worker thread, with all signals blocked.
Create a worker thread with all signals blocked .
static int
create_worker(tpool_t *tpool)
{
	sigset_t maskset, oset;
	pthread_t thread;
	int error;
	sigfillset(&maskset);
	(void) pthread_sigmask(SIG_SETMASK, &maskset, &oset);
	error = pthread_create(&thread, &tpool->tp_attr, tpool_worker, tpool);
	(void) pthread_sigmask(SIG_SETMASK, &oset, NULL);
	return (error);
}
static int create_worker ( tpool_t * tpool ) { sigset_t maskset , oset ; pthread_t thread ; int error ; sigfillset ( & maskset ) ; ( void ) pthread_sigmask ( SIG_SETMASK , & maskset , & oset ) ; error = pthread_create ( & thread , & tpool -> tp_attr , tpool_worker , tpool ) ; ( void ) pthread_sigmask ( SIG_SETMASK , & oset , NULL ) ; return ( error ) ; }
Create a worker thread, with all signals blocked.
Create a worker thread with all signals blocked .