[beast: 10/11] BSE: keep task registration to bse_main_loop_thread()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 10/11] BSE: keep task registration to bse_main_loop_thread()
- Date: Wed, 9 Sep 2015 08:14:34 +0000 (UTC)
commit f36e2af1fd6e0ad047829d17f0eee8afff147b48
Author: Tim Janik <timj gnu org>
Date: Tue Sep 8 09:09:03 2015 +0200
BSE: keep task registration to bse_main_loop_thread()
bse/bsemain.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/bse/bsemain.cc b/bse/bsemain.cc
index 842e104..4841d70 100644
--- a/bse/bsemain.cc
+++ b/bse/bsemain.cc
@@ -100,8 +100,7 @@ bse_init_intern()
g_error ("%s() may only be called once", "bse_init_inprocess");
g_assert (G_BYTE_ORDER == G_LITTLE_ENDIAN || G_BYTE_ORDER == G_BIG_ENDIAN);
- // threading and main loop
- Bse::TaskRegistry::add ("BSE Core", Rapicorn::ThisThread::process_pid(),
Rapicorn::ThisThread::thread_pid()); // see bse_main_loop_thread
+ // main loop
bse_main_context = g_main_context_new ();
// basic components
@@ -230,6 +229,8 @@ bse_init_inprocess (int *argc, char **argv, const char *app_name, const Bse::Str
static void
bse_main_loop_thread (Rapicorn::AsyncBlockingQueue<int> *init_queue)
{
+ Bse::TaskRegistry::add ("BSE Core", Rapicorn::ThisThread::process_pid(),
Rapicorn::ThisThread::thread_pid());
+
bse_init_intern ();
// complete initialization
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]