[gegl] buffer: fix blocking of the writer thread in the file backends



commit e4b5a571d28d8d006984658fd2208336396c6ca3
Author: Ville Sokk <ville sokk gmail com>
Date:   Fri Sep 28 21:54:05 2012 +0300

    buffer: fix blocking of the writer thread in the file backends

 gegl/buffer/gegl-tile-backend-file-async.c  |    4 ++--
 gegl/buffer/gegl-tile-backend-file-mapped.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile-backend-file-async.c b/gegl/buffer/gegl-tile-backend-file-async.c
index 2a54154..55965cd 100644
--- a/gegl/buffer/gegl-tile-backend-file-async.c
+++ b/gegl/buffer/gegl-tile-backend-file-async.c
@@ -194,8 +194,8 @@ gegl_tile_backend_file_push_queue (GeglFileBackendThreadParams *params)
         params->entry->block_link = g_queue_peek_tail_link (&queue);
     }
 
-  if (length == 0) /* wake up the writer thread */
-    g_cond_signal (queue_cond);
+  /* wake up the writer thread */
+  g_cond_signal (queue_cond);
 
   g_mutex_unlock (mutex);
 }
diff --git a/gegl/buffer/gegl-tile-backend-file-mapped.c b/gegl/buffer/gegl-tile-backend-file-mapped.c
index 3021146..28f95fc 100644
--- a/gegl/buffer/gegl-tile-backend-file-mapped.c
+++ b/gegl/buffer/gegl-tile-backend-file-mapped.c
@@ -189,8 +189,8 @@ gegl_tile_backend_file_push_queue (GeglFileBackendThreadParams *params)
         params->entry->block_link = g_queue_peek_tail_link (&queue);
     }
 
-  if (length == 0) /* wake up the writer thread */
-    g_cond_signal (queue_cond);
+  /* wake up the writer thread */
+  g_cond_signal (queue_cond);
 
   g_mutex_unlock (mutex);
 }



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