[gegl] [buffer] add #if ENABLE_MP guards



commit b95048d13190a7a630b1406faea1889ad1fdbaad
Author: �yvind Kolås <pippin gimp org>
Date:   Sat Nov 21 22:35:03 2009 +0000

    [buffer] add #if ENABLE_MP guards

 gegl/buffer/gegl-buffer.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index 07b2b2b..823d924 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -1143,7 +1143,9 @@ gegl_buffer_void (GeglBuffer *buffer)
   gint tile_height = buffer->tile_storage->tile_height;
   gint bufy        = 0;
 
+#if ENABLE_MP
   g_mutex_lock (buffer->tile_storage->mutex);
+#endif
   {
     gint z;
     gint factor = 1;
@@ -1187,7 +1189,9 @@ done_with_row:
         factor *= 2;
       }
   }
+#if ENABLE_MP
   g_mutex_unlock (buffer->tile_storage->mutex);
+#endif
 }
 
 



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