mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-12-04 14:46:31 -05:00
reduce stack allocation to 512k, the defaults tend to be quite large
svn path=/icecast/trunk/thread/; revision=10018
This commit is contained in:
parent
69739738f9
commit
e649b8e209
@ -291,6 +291,7 @@ thread_type *thread_create_c(char *name, void *(*start_routine)(void *),
|
|||||||
start->arg = arg;
|
start->arg = arg;
|
||||||
start->thread = thread;
|
start->thread = thread;
|
||||||
|
|
||||||
|
pthread_attr_setstacksize (&attr, 512*1024);
|
||||||
pthread_attr_setinheritsched (&attr, PTHREAD_INHERIT_SCHED);
|
pthread_attr_setinheritsched (&attr, PTHREAD_INHERIT_SCHED);
|
||||||
if (detached)
|
if (detached)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user