diff options
author | Tim Blechmann <timblech@users.sourceforge.net> | 2006-01-29 22:13:49 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:12:01 +0200 |
commit | 682501946dd0637cfe9fc2477bc3a6e78c032349 (patch) | |
tree | c25c0b3b5f7383110e375a540a648f4789180a80 /sndfiler | |
parent | 60fee223a0a27439814547aee438bb5c53e44437 (diff) |
limit stacksize of helper thread to 1mb ... should be more than enough ...
svn path=/trunk/externals/tb/; revision=4518
Diffstat (limited to 'sndfiler')
-rwxr-xr-x | sndfiler/src/sndfiler.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sndfiler/src/sndfiler.c b/sndfiler/src/sndfiler.c index 507510a..9bf6b65 100755 --- a/sndfiler/src/sndfiler.c +++ b/sndfiler/src/sndfiler.c @@ -203,7 +203,10 @@ static void sndfiler_start_thread(void) sf_param.sched_priority=sched_get_priority_min(SCHED_OTHER); pthread_attr_setschedparam(&sf_attr,&sf_param); - + + /* 1mb of stack should be enough */ + pthread_attr_setstacksize(&sf_attr,1048576); + #ifdef UNIX if (sys_hipriority == 1/* && getuid() == 0 */) { |