diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-23 01:28:58 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-23 01:28:58 +0200 |
commit | 3d166c77891c2a83de35c5fd10c0b23c131bc43b (patch) | |
tree | 8aadfa6e479b07620598d954cf422c15c836d2c0 /libs/ardour/rt_tasklist.cc | |
parent | 485ac454771a7ae5301524f9ba0a5adb28fbacf4 (diff) |
Consolidate stack-size and priority of rt-threads
Diffstat (limited to 'libs/ardour/rt_tasklist.cc')
-rw-r--r-- | libs/ardour/rt_tasklist.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/ardour/rt_tasklist.cc b/libs/ardour/rt_tasklist.cc index 1472f8e350..80f5b310aa 100644 --- a/libs/ardour/rt_tasklist.cc +++ b/libs/ardour/rt_tasklist.cc @@ -84,13 +84,12 @@ RTTaskList::reset_thread_list () g_atomic_int_set (&_threads_active, 1); for (uint32_t i = 0; i < num_threads; ++i) { pthread_t thread_id; - size_t stacksize = 100000; if (!AudioEngine::instance()->is_realtime () || - pbd_realtime_pthread_create (PBD_SCHED_FIFO, AudioEngine::instance()->client_real_time_priority(), stacksize, &thread_id, _thread_run, this)) { + pbd_realtime_pthread_create (PBD_SCHED_FIFO, AudioEngine::instance()->client_real_time_priority(), PBD_RT_STACKSIZE_HELP, &thread_id, _thread_run, this)) { pthread_attr_t attr; pthread_attr_init (&attr); - pthread_attr_setstacksize (&attr, stacksize); + pthread_attr_setstacksize (&attr, PBD_RT_STACKSIZE_HELP); if (pthread_create (&thread_id, &attr, _thread_run, this)) { PBD::fatal << _("Cannot create thread for TaskList!") << endmsg; /* NOT REACHED */ |