[gnome-software] trivial: Fix warning in the profiling code where refine was being run under multiple threads



commit 5955597a51e69ef2470ed6b2f6d818d80149a809
Author: Richard Hughes <richard hughsie com>
Date:   Wed Oct 23 08:39:20 2013 +0100

    trivial: Fix warning in the profiling code where refine was being run under multiple threads

 src/gs-plugin-loader.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 6790988..565e359 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -205,7 +205,7 @@ gs_plugin_loader_run_refine_plugin (GsPluginLoader *plugin_loader,
                                              function_name_parent,
                                              function_name);
        }
-       gs_profile_start (plugin_loader->priv->profile, profile_id);
+       gs_profile_start_full (plugin_loader->priv->profile, profile_id);
        ret = plugin_func (plugin, list, flags, cancellable, error);
        if (!ret) {
                /* check the plugin is well behaved and sets error
@@ -230,7 +230,7 @@ gs_plugin_loader_run_refine_plugin (GsPluginLoader *plugin_loader,
        }
 out:
        if (profile_id != NULL) {
-               gs_profile_stop (plugin_loader->priv->profile, profile_id);
+               gs_profile_stop_full (plugin_loader->priv->profile, profile_id);
                gs_plugin_status_update (plugin, NULL, GS_PLUGIN_STATUS_FINISHED);
        }
        g_free (profile_id);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]