Consolidate stack-size and priority of rt-threads

This commit is contained in:
Robin Gareus 2020-04-23 01:28:58 +02:00
parent 485ac45477
commit 3d166c7789
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
13 changed files with 36 additions and 34 deletions

View file

@ -228,11 +228,8 @@ WinMMEMidiOutputDevice::start_midi_output_thread ()
{
m_thread_quit = false;
//pthread_attr_t attr;
size_t stacksize = 100000;
// TODO Use native threads
if (pbd_realtime_pthread_create (PBD_SCHED_FIFO, -21, stacksize,
if (pbd_realtime_pthread_create (PBD_SCHED_FIFO, PBD_RT_PRI_MIDI, PBD_RT_STACKSIZE_HELP,
&m_output_thread_handle, midi_output_thread, this)) {
return false;
}