mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Impose stack limit on backend threads (freewheeling, MIDI poll)
This commit is contained in:
parent
e8445d13ec
commit
e8c67408bb
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue