*magick_restrict cache_info;
char
- *synchronize;
+ *value;
cache_info=(CacheInfo *) AcquireQuantumMemory(1,sizeof(*cache_info));
if (cache_info == (CacheInfo *) NULL)
cache_info->nexus_info=AcquirePixelCacheNexus(cache_info->number_threads);
if (cache_info->nexus_info == (NexusInfo **) NULL)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
- synchronize=GetEnvironmentValue("MAGICK_SYNCHRONIZE");
- if (synchronize != (const char *) NULL)
+ value=GetEnvironmentValue("MAGICK_SYNCHRONIZE");
+ if (value != (const char *) NULL)
{
- cache_info->synchronize=IsStringTrue(synchronize);
- synchronize=DestroyString(synchronize);
+ cache_info->synchronize=IsStringTrue(value);
+ value=DestroyString(value);
+ }
+ value=GetPolicyValue("synchronize");
+ if (value != (const char *) NULL)
+ {
+ cache_info->synchronize=IsStringTrue(value);
+ value=DestroyString(value);
}
cache_info->semaphore=AcquireSemaphoreInfo();
cache_info->reference_count=1;
<!-- <policy domain="system" name="pixel-cache-memory" value="anonymous"/> -->
<!-- <policy domain="system" name="shred" value="2"/> -->
<!-- <policy domain="system" name="precision" value="6"/> -->
+ <!-- <policy domain="cache" name="synchronize" value="False"/> -->
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
<!-- <policy domain="resource" name="memory" value="2GiB"/> -->
<!-- <policy domain="resource" name="map" value="4GiB"/> -->