[gnome-software] trivial: Also use the GRWLock for the batched refine
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Also use the GRWLock for the batched refine
- Date: Thu, 14 Apr 2016 10:49:46 +0000 (UTC)
commit 85ebe42cdb61688873a089bc29ddb4f9409a85e4
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 14 09:01:08 2016 +0100
trivial: Also use the GRWLock for the batched refine
src/gs-plugin-loader.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index e76757b..bcea965 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -175,8 +175,10 @@ gs_plugin_loader_run_refine (GsPluginLoader *plugin_loader,
/* run the batched plugin symbol then the per-app plugin */
if (plugin_func != NULL) {
g_autoptr(GError) error_local = NULL;
+ g_rw_lock_reader_lock (&plugin->rwlock);
ret = plugin_func (plugin, list, flags,
cancellable, &error_local);
+ g_rw_lock_reader_unlock (&plugin->rwlock);
if (!ret) {
g_warning ("failed to call %s on %s: %s",
function_name, plugin->name,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]