From 2923e4fa79650f8097f78aee2988fe94618fd9af Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 19 Oct 2009 16:03:59 +0000 Subject: [PATCH] --- magick/cache.c | 56 +++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/magick/cache.c b/magick/cache.c index 8b7068a3b..cd209e070 100644 --- a/magick/cache.c +++ b/magick/cache.c @@ -1337,6 +1337,34 @@ MagickExport void ClonePixelCacheMethods(Cache clone,const Cache cache) % % % % % % ++ D e s t r o y C a c h e C o m p o n e n t % +% % +% % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% DestroyCacheFaclity() destroys the cache component. +% +% The format of the DestroyCacheFaclity() method is: +% +% DestroyCacheFaclity(void) +% +*/ +MagickExport void DestroyCacheFaclity(void) +{ + AcquireSemaphoreInfo(&cache_semaphore); + if (cache_resources != (SplayTreeInfo *) NULL) + cache_resources=DestroySplayTree(cache_resources); + instantiate_cache=MagickFalse; + RelinquishSemaphoreInfo(cache_semaphore); + DestroySemaphoreInfo(&cache_semaphore); +} + +/* +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% % +% % + D e s t r o y I m a g e P i x e l C a c h e % % % % % @@ -1579,34 +1607,6 @@ MagickExport NexusInfo **DestroyPixelCacheNexus(NexusInfo **nexus_info, % % % % % % -+ D e s t r o y C a c h e C o m p o n e n t % -% % -% % -% % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% -% DestroyCacheFaclity() destroys the cache component. -% -% The format of the DestroyCacheFaclity() method is: -% -% DestroyCacheFaclity(void) -% -*/ -MagickExport void DestroyCacheFaclity(void) -{ - AcquireSemaphoreInfo(&cache_semaphore); - if (cache_resources != (SplayTreeInfo *) NULL) - cache_resources=DestroySplayTree(cache_resources); - instantiate_cache=MagickFalse; - RelinquishSemaphoreInfo(cache_semaphore); - DestroySemaphoreInfo(&cache_semaphore); -} - -/* -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% % -% % -% % + G e t A u t h e n t i c I n d e x e s F r o m C a c h e % % % % % -- 2.40.0