4 #include "../fb_private_thread.h"
31 thread->
param = param;
33 if( pthread_attr_init( &tattr ) ) {
39 #ifdef PTHREAD_STACK_MIN
40 stack_size = stack_size >= PTHREAD_STACK_MIN ? stack_size : PTHREAD_STACK_MIN;
43 pthread_attr_setstacksize( &tattr, stack_size );
45 if( pthread_create( &thread->id, &tattr,
threadproc, (
void *)thread ) ) {
46 free( (
void *)thread );
58 pthread_join( thread->id,
NULL );