]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 19 Oct 2009 16:03:59 +0000 (16:03 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 19 Oct 2009 16:03:59 +0000 (16:03 +0000)
magick/cache.c

index 8b7068a3be75330299554382af3f9cd8fa7eb0d7..cd209e07057f95cbadc36de2e7a3f97bc6489ccf 100644 (file)
@@ -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);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                                                             %
+%                                                                             %
+%                                                                             %
 +   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);
-}
-\f
-/*
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%                                                                             %
-%                                                                             %
-%                                                                             %
 +   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                   %
 %                                                                             %
 %                                                                             %