Delay headless startup, allow background threads to start

This commit is contained in:
Robin Gareus 2019-07-04 22:22:27 +02:00
parent 8f9a1e1cf4
commit 31b4bc9166
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 10 additions and 0 deletions

View File

@ -239,6 +239,16 @@ int main (int argc, char* argv[])
exit (EXIT_FAILURE);
}
/* allow signal propagation, callback/thread-pool setup, etc
* similar to to GUI "first idle"
*/
Glib::usleep (1000000); // 1 sec
if (!s) {
cerr << "failed_to load session\n";
exit (EXIT_FAILURE);
}
PBD::ScopedConnectionList con;
BasicUI::AccessAction.connect_same_thread (con, boost::bind (&access_action, _1, _2));
AudioEngine::instance()->Halted.connect_same_thread (con, boost::bind (&engine_halted, _1));