Impose stack limit on backend threads (freewheeling, MIDI poll)
This commit is contained in:
@@ -1385,7 +1385,7 @@ AlsaAudioBackend::midi_device_thread ()
|
||||
bool
|
||||
AlsaAudioBackend::listen_for_midi_device_changes ()
|
||||
{
|
||||
if (pthread_create (&_midi_device_thread_id, NULL, _midi_device_thread, this)) {
|
||||
if (pbd_pthread_create (PBD_RT_STACKSIZE_HELP, &_midi_device_thread_id, _midi_device_thread, this)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -605,7 +605,7 @@ CoreAudioBackend::_start (bool for_latency_measurement)
|
||||
return PortReconnectError;
|
||||
}
|
||||
|
||||
if (pthread_create (&_freeewheel_thread, NULL, pthread_freewheel, this))
|
||||
if (pbd_pthread_create (PBD_RT_STACKSIZE_PROC, &_freeewheel_thread, pthread_freewheel, this))
|
||||
{
|
||||
PBD::error << _("CoreAudioBackend: failed to create process thread.") << endmsg;
|
||||
delete _pcmio; _pcmio = 0;
|
||||
|
||||
@@ -856,7 +856,7 @@ static void* freewheel_thread(void* arg)
|
||||
bool
|
||||
PortAudioBackend::start_freewheel_process_thread ()
|
||||
{
|
||||
if (pthread_create(&_pthread_freewheel, NULL, freewheel_thread, this)) {
|
||||
if (pbd_pthread_create (PBD_RT_STACKSIZE_PROC, &_pthread_freewheel, freewheel_thread, this)) {
|
||||
DEBUG_AUDIO("Failed to create main audio thread\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user