create engine thread before sending notifications.

Fixes missing thread in Pool in session_process,
when switching backend threads (CoreAudio, Waves)
This commit is contained in:
Robin Gareus
2015-03-05 16:46:06 +01:00
parent f6f64d3f81
commit 1089f19a4c

View File

@@ -1136,11 +1136,11 @@ AudioEngine::thread_init_callback (void* arg)
pthread_set_name (X_("audioengine"));
SessionEvent::create_per_thread_pool (X_("AudioEngine"), 512);
PBD::notify_gui_about_thread_creation ("gui", pthread_self(), X_("AudioEngine"), 4096);
PBD::notify_gui_about_thread_creation ("midiui", pthread_self(), X_("AudioEngine"), 128);
SessionEvent::create_per_thread_pool (X_("AudioEngine"), 512);
AsyncMIDIPort::set_process_thread (pthread_self());
if (arg) {