From 144a95dc92fec5f3cc0576afaaadae7e163ce14a Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 13 Feb 2013 16:27:24 +0000 Subject: [PATCH] sync --- TODO | 2 -- libvips/foreign/dzsave.c | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/TODO b/TODO index 1005a391..edcd7e49 100644 --- a/TODO +++ b/TODO @@ -11,8 +11,6 @@ Article: nomis80.org/ctmf.pdf -- update the INCLUDES etc. stuff, see OS X build - - quadratic doesn't work for order 3 start to get jaggies on lines --- the 3rd differential isn't being diff --git a/libvips/foreign/dzsave.c b/libvips/foreign/dzsave.c index 6354af18..a9b8fb40 100644 --- a/libvips/foreign/dzsave.c +++ b/libvips/foreign/dzsave.c @@ -632,7 +632,7 @@ strip_allocate( VipsThreadState *state, void *a, gboolean *stop ) static int tile_name( Layer *layer, char *buf, int x, int y ) { - /* Need to lock around some file operations. + /* Need to lock around exists()/mkdir() or there's a race. */ static GMutex *file_lock = NULL; static GOnce file_lock_once = G_ONCE_INIT; @@ -644,8 +644,6 @@ tile_name( Layer *layer, char *buf, int x, int y ) Layer *p; int n; - /* We have to lock or there's a race between exists() and mkdir(). - */ file_lock = g_once( &file_lock_once, (GThreadFunc) vips_g_mutex_new, NULL ); g_mutex_lock( file_lock );