libmbca r38 - trunk/src
- From: kaijanma svn gnome org
- To: svn-commits-list gnome org
- Subject: libmbca r38 - trunk/src
- Date: Thu, 21 Aug 2008 12:01:00 +0000 (UTC)
Author: kaijanma
Date: Thu Aug 21 12:01:00 2008
New Revision: 38
URL: http://svn.gnome.org/viewvc/libmbca?rev=38&view=rev
Log:
start resource thread after other initialization
Modified:
trunk/src/mbca_assistant.c
Modified: trunk/src/mbca_assistant.c
==============================================================================
--- trunk/src/mbca_assistant.c (original)
+++ trunk/src/mbca_assistant.c Thu Aug 21 12:01:00 2008
@@ -993,22 +993,6 @@
gtk_list_store_set (priv->baud_store, &iter,
SERIALBAUD_RATE_COLUMN, "9600",
-1);
-
- /* provider resource loading thead */
- /* remember: booleans and pointers are set by g_malloc0 */
- priv->instances_mutex = g_mutex_new ();
-
- priv->trigger_mutex = g_mutex_new ();
- g_mutex_lock (priv->trigger_mutex);
-
- priv->provider_thread = g_thread_create (mbca_load_provider_page_resources_thread_func,
- priv,
- TRUE,
- NULL);
- if (!priv->provider_thread)
- {
- g_error ("g_thread_create failed");
- }
priv->builder = gtk_builder_new ();
ret = gtk_builder_add_from_file (priv->builder,
@@ -1048,6 +1032,23 @@
NULL);
connect_signals (self);
+
+ /* provider resource loading thead */
+ /* remember: booleans and pointers are set by g_malloc0 */
+ priv->instances_mutex = g_mutex_new ();
+
+ priv->trigger_mutex = g_mutex_new ();
+ g_mutex_lock (priv->trigger_mutex);
+
+ priv->provider_thread = g_thread_create (mbca_load_provider_page_resources_thread_func,
+ priv,
+ TRUE,
+ NULL);
+ if (!priv->provider_thread)
+ {
+ g_error ("g_thread_create failed");
+ }
+
/** @todo fixme
*
* if provider thread attaches the resources to assistants, it breaks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]