1 --- threads.c.orig 2007-05-16 13:59:44.000000000 +0800
2 +++ threads.c 2007-05-08 16:23:31.000000000 +0800
6 void *p_data = (void *)p_this;
7 + pthread_attr_t th_attr;
10 vlc_mutex_lock( &p_this->object_lock );
13 i_ret = resume_thread( p_this->thread_id );
15 #elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
16 - i_ret = pthread_create( &p_this->thread_id, NULL, func, p_data );
18 + pthread_attr_init(&th_attr);
19 + pthread_attr_getstacksize(&th_attr, &th_size);
20 + printf("vlc: default stack size: %d\n", th_size);
22 + pthread_attr_setstacksize(&th_attr, th_size);
23 + i_ret = pthread_create( &p_this->thread_id, &th_attr, func, p_data );
26 if( config_GetInt( p_this, "rt-priority" ) )