Changeset 7842
- Timestamp:
- 05/08/12 14:38:18 (14 months ago)
- Location:
- ImageMagick/trunk/MagickCore
- Files:
-
- 2 edited
-
cache-private.h (modified) (1 diff)
-
cache.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/MagickCore/cache-private.h
r7337 r7842 193 193 *disk_semaphore; 194 194 195 time_t196 timestamp;197 198 195 size_t 199 196 signature; -
ImageMagick/trunk/MagickCore/cache.c
r7838 r7842 516 516 cache_info->file=file; 517 517 cache_info->mode=mode; 518 cache_info->timestamp=time(0);519 518 UnlockSemaphoreInfo(cache_info->disk_semaphore); 520 519 return(MagickTrue); 521 520 } 522 521 523 static inline MagickOffsetType ReadPixelCacheRegion( CacheInfo *cache_info,524 const MagickOffsetType offset,const MagickSizeType length,525 unsigned char *restrict buffer)522 static inline MagickOffsetType ReadPixelCacheRegion( 523 const CacheInfo *restrict cache_info,const MagickOffsetType offset, 524 const MagickSizeType length,unsigned char *restrict buffer) 526 525 { 527 526 register MagickOffsetType … … 531 530 count; 532 531 533 cache_info->timestamp=time(0);534 532 #if !defined(MAGICKCORE_HAVE_PREAD) 535 533 LockSemaphoreInfo(cache_info->disk_semaphore); … … 565 563 } 566 564 567 static inline MagickOffsetType WritePixelCacheRegion( CacheInfo *cache_info,568 const MagickOffsetType offset,const MagickSizeType length,569 const unsigned char *restrict buffer)565 static inline MagickOffsetType WritePixelCacheRegion( 566 const CacheInfo *restrict cache_info,const MagickOffsetType offset, 567 const MagickSizeType length,const unsigned char *restrict buffer) 570 568 { 571 569 register MagickOffsetType … … 575 573 count; 576 574 577 cache_info->timestamp=time(0);578 575 #if !defined(MAGICKCORE_HAVE_PWRITE) 579 576 LockSemaphoreInfo(cache_info->disk_semaphore); … … 1496 1493 1497 1494 static inline MagickBooleanType IsPixelAuthentic( 1498 const CacheInfo *restrict cache_info, NexusInfo *nexus_info)1495 const CacheInfo *restrict cache_info,const NexusInfo *restrict nexus_info) 1499 1496 { 1500 1497 MagickBooleanType … … 1832 1829 */ 1833 1830 1834 static inline MagickBooleanType ValidatePixelCacheMorphology(const Image *image) 1835 { 1836 CacheInfo 1837 *cache_info; 1838 1839 PixelChannelMap 1840 *p, 1841 *q; 1831 static 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; 1842 1840 1843 1841 /* … … 4731 4729 */ 4732 4730 4733 static inline MagickBooleanType AcquireCacheNexusPixels(CacheInfo *cache_info, 4734 NexusInfo *nexus_info,ExceptionInfo *exception) 4731 static inline MagickBooleanType AcquireCacheNexusPixels( 4732 const CacheInfo *restrict cache_info,NexusInfo *nexus_info, 4733 ExceptionInfo *exception) 4735 4734 { 4736 4735 if (nexus_info->length != (MagickSizeType) ((size_t) nexus_info->length))
Note: See TracChangeset
for help on using the changeset viewer.
