]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 4 Mar 2010 19:18:05 +0000 (19:18 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 4 Mar 2010 19:18:05 +0000 (19:18 +0000)
magick/cache.c

index 5c2c20ad131be0157008209369ee7375d939be8f..0513355982aea7f4415c5d0bc14977755f5d7903 100644 (file)
@@ -784,9 +784,9 @@ static inline MagickOffsetType ReadPixelCacheRegion(CacheInfo *cache_info,
   ssize_t
     count;
 
+  cache_info->timestamp=time(0);
 #if !defined(MAGICKCORE_HAVE_PREAD)
   LockSemaphoreInfo(cache_info->disk_semaphore);
-  cache_info->timestamp=time(0);
   if (MagickSeek(cache_info->file,offset,SEEK_SET) < 0)
     {
       UnlockSemaphoreInfo(cache_info->disk_semaphore);
@@ -828,9 +828,9 @@ static inline MagickOffsetType WritePixelCacheRegion(CacheInfo *cache_info,
   ssize_t
     count;
 
+  cache_info->timestamp=time(0);
 #if !defined(MAGICKCORE_HAVE_PWRITE)
   LockSemaphoreInfo(cache_info->disk_semaphore);
-  cache_info->timestamp=time(0);
   if (MagickSeek(cache_info->file,offset,SEEK_SET) < 0)
     {
       UnlockSemaphoreInfo(cache_info->disk_semaphore);