This commit is contained in:
John Cupitt 2013-02-13 16:27:24 +00:00
parent 174c2fa8c1
commit 144a95dc92
2 changed files with 1 additions and 5 deletions

2
TODO
View File

@ -11,8 +11,6 @@
Article: nomis80.org/ctmf.pdf Article: nomis80.org/ctmf.pdf
- update the INCLUDES etc. stuff, see OS X build
- quadratic doesn't work for order 3 - quadratic doesn't work for order 3
start to get jaggies on lines --- the 3rd differential isn't being start to get jaggies on lines --- the 3rd differential isn't being

View File

@ -632,7 +632,7 @@ strip_allocate( VipsThreadState *state, void *a, gboolean *stop )
static int static int
tile_name( Layer *layer, char *buf, int x, int y ) 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 GMutex *file_lock = NULL;
static GOnce file_lock_once = G_ONCE_INIT; static GOnce file_lock_once = G_ONCE_INIT;
@ -644,8 +644,6 @@ tile_name( Layer *layer, char *buf, int x, int y )
Layer *p; Layer *p;
int n; int n;
/* We have to lock or there's a race between exists() and mkdir().
*/
file_lock = g_once( &file_lock_once, file_lock = g_once( &file_lock_once,
(GThreadFunc) vips_g_mutex_new, NULL ); (GThreadFunc) vips_g_mutex_new, NULL );
g_mutex_lock( file_lock ); g_mutex_lock( file_lock );