[gegl] buffer: remove locking from cache trimming
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: remove locking from cache trimming
- Date: Sun, 18 Apr 2010 20:59:33 +0000 (UTC)
commit f5c41f923db8d9e6cbc88c708e443c4dc588bfc6
Author: �yvind Kolås <pippin gimp org>
Date: Sun Apr 18 21:58:26 2010 +0100
buffer: remove locking from cache trimming
The lock is already held at this stage, which leads to a deadlock.
gegl/buffer/gegl-tile-handler-cache.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile-handler-cache.c b/gegl/buffer/gegl-tile-handler-cache.c
index c784319..dd19e98 100644
--- a/gegl/buffer/gegl-tile-handler-cache.c
+++ b/gegl/buffer/gegl-tile-handler-cache.c
@@ -399,7 +399,6 @@ gegl_tile_handler_cache_trim (GeglTileHandlerCache *cache)
{
CacheItem *last_writable;
- g_static_mutex_lock (&mutex);
last_writable = g_queue_pop_tail (cache_queue);
if (last_writable != NULL)
@@ -408,10 +407,8 @@ gegl_tile_handler_cache_trim (GeglTileHandlerCache *cache)
cache_total -= last_writable->tile->size;
gegl_tile_unref (last_writable->tile);
g_slice_free (CacheItem, last_writable);
- g_static_mutex_unlock (&mutex);
return TRUE;
}
- g_static_mutex_unlock (&mutex);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]