[gnome-photos/wip/rishi/double-buffering] queue



commit d8dece7044f9dce0d30ea2154053445a5e3fd5ca
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jan 20 15:01:16 2017 +0100

    queue

 src/photos-base-item.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 1060045..ba8df3f 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -75,6 +75,7 @@ struct _PhotosBaseItemPrivate
   GQuark equipment;
   GQuark flash;
   GQuark orientation;
+  GQueue *operation_queue;
   PhotosCollectionIconWatcher *watcher;
   PhotosPipeline *pipeline;
   PhotosSelectionController *sel_cntrlr;
@@ -2360,6 +2361,8 @@ photos_base_item_finalize (GObject *object)
   g_mutex_clear (&priv->mutex_download);
   g_mutex_clear (&priv->mutex_save_metadata);
 
+  g_queue_free_full (self->operation_queue, g_object_unref);
+
   G_OBJECT_CLASS (photos_base_item_parent_class)->finalize (object);
 
   EGG_COUNTER_DEC (instances);
@@ -2450,6 +2453,8 @@ photos_base_item_init (PhotosBaseItem *self)
   g_mutex_init (&priv->mutex_download);
   g_mutex_init (&priv->mutex_save_metadata);
 
+  priv->operation_queue = g_queue_new ();
+
   priv->sel_cntrlr = photos_selection_controller_dup_singleton ();
 }
 


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