[tracker/fixed-cursor] tracker-store: Move reply to mainloop
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/fixed-cursor] tracker-store: Move reply to mainloop
- Date: Mon, 26 Apr 2010 14:31:45 +0000 (UTC)
commit 7f8dea62453f05f255c25fd403d031855f96d788
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Apr 26 16:30:40 2010 +0200
tracker-store: Move reply to mainloop
src/tracker-store/tracker-resources.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.c b/src/tracker-store/tracker-resources.c
index c909602..2a74957 100644
--- a/src/tracker-store/tracker-resources.c
+++ b/src/tracker-store/tracker-resources.c
@@ -87,6 +87,7 @@ typedef struct {
typedef struct {
DBusGMethodInvocation *context;
guint request_id;
+ DBusMessage *reply;
} TrackerDBusMethodInfo;
typedef struct {
@@ -242,16 +243,13 @@ query_inthread (TrackerDBCursor *cursor, GError *error, gpointer user_data)
GError *loop_error = NULL;
guint length = 0;
gboolean cont;
- static GStaticMutex dbus_mutex = G_STATIC_MUTEX_INIT;
if (error) {
ptr->error = g_error_copy (error);
return ptr;
}
- g_static_mutex_lock (&dbus_mutex);
- reply = dbus_g_method_get_reply (info->context);
- g_static_mutex_unlock (&dbus_mutex);
+ reply = info->reply;
dbus_message_iter_init_append (reply, &iter);
@@ -339,6 +337,7 @@ tracker_resources_sparql_query (TrackerResources *self,
info->request_id = request_id;
info->context = context;
+ info->reply = dbus_g_method_get_reply (context);
sender = dbus_g_method_get_sender (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]