mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
umm ya, the thread stack size is in bytes not kbytes
This commit is contained in:
parent
239094e49c
commit
dfb2dfd29e
@ -1357,7 +1357,12 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
global_handle = &handle;
|
global_handle = &handle;
|
||||||
global_profile = profile;
|
global_profile = profile;
|
||||||
esl_thread_create_detached(msg_thread_run, &handle);
|
|
||||||
|
if (esl_thread_create_detached(msg_thread_run, &handle) != ESL_SUCCESS) {
|
||||||
|
printf("Error starting thread!\n");
|
||||||
|
esl_disconnect(&handle);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_EDITLINE
|
#ifdef HAVE_EDITLINE
|
||||||
el = el_init(__FILE__, stdin, stdout, stderr);
|
el = el_init(__FILE__, stdin, stdout, stderr);
|
||||||
|
@ -60,7 +60,7 @@ struct esl_thread {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
size_t thread_default_stacksize = 240;
|
size_t thread_default_stacksize = 240 * 1024;
|
||||||
|
|
||||||
void esl_thread_override_default_stacksize(size_t size)
|
void esl_thread_override_default_stacksize(size_t size)
|
||||||
{
|
{
|
||||||
@ -119,7 +119,9 @@ esl_status_t esl_thread_create_detached_ex(esl_thread_function_t func, void *dat
|
|||||||
|
|
||||||
status = ESL_SUCCESS;
|
status = ESL_SUCCESS;
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
failpthread:
|
failpthread:
|
||||||
|
|
||||||
pthread_attr_destroy(&thread->attribute);
|
pthread_attr_destroy(&thread->attribute);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user