Changeset 7842


Ignore:
Timestamp:
05/08/12 14:38:18 (14 months ago)
Author:
cristy
Message:
 
Location:
ImageMagick/trunk/MagickCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/MagickCore/cache-private.h

    r7337 r7842  
    193193    *disk_semaphore; 
    194194 
    195   time_t 
    196     timestamp; 
    197  
    198195  size_t 
    199196    signature; 
  • ImageMagick/trunk/MagickCore/cache.c

    r7838 r7842  
    516516  cache_info->file=file; 
    517517  cache_info->mode=mode; 
    518   cache_info->timestamp=time(0); 
    519518  UnlockSemaphoreInfo(cache_info->disk_semaphore); 
    520519  return(MagickTrue); 
    521520} 
    522521 
    523 static inline MagickOffsetType ReadPixelCacheRegion(CacheInfo *cache_info, 
    524   const MagickOffsetType offset,const MagickSizeType length, 
    525   unsigned char *restrict buffer) 
     522static inline MagickOffsetType ReadPixelCacheRegion( 
     523  const CacheInfo *restrict cache_info,const MagickOffsetType offset, 
     524  const MagickSizeType length,unsigned char *restrict buffer) 
    526525{ 
    527526  register MagickOffsetType 
     
    531530    count; 
    532531 
    533   cache_info->timestamp=time(0); 
    534532#if !defined(MAGICKCORE_HAVE_PREAD) 
    535533  LockSemaphoreInfo(cache_info->disk_semaphore); 
     
    565563} 
    566564 
    567 static inline MagickOffsetType WritePixelCacheRegion(CacheInfo *cache_info, 
    568   const MagickOffsetType offset,const MagickSizeType length, 
    569   const unsigned char *restrict buffer) 
     565static inline MagickOffsetType WritePixelCacheRegion( 
     566  const CacheInfo *restrict cache_info,const MagickOffsetType offset, 
     567  const MagickSizeType length,const unsigned char *restrict buffer) 
    570568{ 
    571569  register MagickOffsetType 
     
    575573    count; 
    576574 
    577   cache_info->timestamp=time(0); 
    578575#if !defined(MAGICKCORE_HAVE_PWRITE) 
    579576  LockSemaphoreInfo(cache_info->disk_semaphore); 
     
    14961493 
    14971494static inline MagickBooleanType IsPixelAuthentic( 
    1498   const CacheInfo *restrict cache_info,NexusInfo *nexus_info) 
     1495  const CacheInfo *restrict cache_info,const NexusInfo *restrict nexus_info) 
    14991496{ 
    15001497  MagickBooleanType 
     
    18321829*/ 
    18331830 
    1834 static inline MagickBooleanType ValidatePixelCacheMorphology(const Image *image) 
    1835 { 
    1836   CacheInfo 
    1837     *cache_info; 
    1838  
    1839   PixelChannelMap 
    1840     *p, 
    1841     *q; 
     1831static inline MagickBooleanType ValidatePixelCacheMorphology( 
     1832  const Image *restrict image) 
     1833{ 
     1834  const CacheInfo 
     1835    *restrict cache_info; 
     1836 
     1837  const PixelChannelMap 
     1838    *restrict p, 
     1839    *restrict q; 
    18421840 
    18431841  /* 
     
    47314729*/ 
    47324730 
    4733 static inline MagickBooleanType AcquireCacheNexusPixels(CacheInfo *cache_info, 
    4734   NexusInfo *nexus_info,ExceptionInfo *exception) 
     4731static inline MagickBooleanType AcquireCacheNexusPixels( 
     4732  const CacheInfo *restrict cache_info,NexusInfo *nexus_info, 
     4733  ExceptionInfo *exception) 
    47354734{ 
    47364735  if (nexus_info->length != (MagickSizeType) ((size_t) nexus_info->length)) 
Note: See TracChangeset for help on using the changeset viewer.