Impose stack limit on backend threads (freewheeling, MIDI poll)

This commit is contained in:
Robin Gareus 2024-09-28 01:25:16 +02:00
parent e8445d13ec
commit e8c67408bb
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;
}