[gnome-builder/wip/chergert/multi-process] libide: more debugging macros



commit b3890808d0528d8d44112f3fb1c931b6d92f4a95
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 20 15:44:42 2015 -0700

    libide: more debugging macros

 libide/ide-worker-process.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-worker-process.c b/libide/ide-worker-process.c
index 4f7322b..fd4e6cf 100644
--- a/libide/ide-worker-process.c
+++ b/libide/ide-worker-process.c
@@ -396,6 +396,8 @@ ide_worker_process_get_proxy_async (IdeWorkerProcess    *self,
 {
   g_autoptr(GTask) task = NULL;
 
+  IDE_ENTRY;
+
   g_return_if_fail (IDE_IS_WORKER_PROCESS (self));
   g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
 
@@ -404,13 +406,15 @@ ide_worker_process_get_proxy_async (IdeWorkerProcess    *self,
   if (self->connection != NULL)
     {
       ide_worker_process_create_proxy_for_task (self, task);
-      return;
+      IDE_EXIT;
     }
 
   if (self->tasks == NULL)
     self->tasks = g_ptr_array_new_with_free_func (g_object_unref);
 
   g_ptr_array_add (self->tasks, g_object_ref (task));
+
+  IDE_EXIT;
 }
 
 GDBusProxy *
@@ -419,9 +423,14 @@ ide_worker_process_get_proxy_finish (IdeWorkerProcess  *self,
                                      GError           **error)
 {
   GTask *task = (GTask *)result;
+  GDBusProxy *ret;
+
+  IDE_ENTRY;
 
   g_return_val_if_fail (IDE_IS_WORKER_PROCESS (self), NULL);
   g_return_val_if_fail (G_IS_TASK (task), NULL);
 
-  return g_task_propagate_pointer (task, error);
+  ret = g_task_propagate_pointer (task, error);
+
+  IDE_RETURN (ret);
 }


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