From: cristy Date: Wed, 19 Mar 2014 13:39:13 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2563 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10e530d932f2ec7c52dbeb7bce6a116a1ab0d50b;p=imagemagick --- diff --git a/MagickCore/delegate.c b/MagickCore/delegate.c index 0df9dd579..eda0971d3 100644 --- a/MagickCore/delegate.c +++ b/MagickCore/delegate.c @@ -759,8 +759,8 @@ MagickExport MagickBooleanType GetDelegateThreadSupport( % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% IsDelegateCacheInstantiated() determines if the delegate list is instantiated. -% If not, it instantiates the list and returns it. +% IsDelegateCacheInstantiated() determines if the delegate cache is +% instantiated. If not, it instantiates the cache and returns it. % % The format of the IsDelegateInstantiated method is: % @@ -1389,6 +1389,8 @@ static MagickBooleanType LoadDelegateCache(LinkedListInfo *delegate_cache, continue; if (LocaleCompare(keyword,"/>") == 0) { + if (delegate_info->thread_support == MagickFalse) + delegate_info->semaphore=AcquireSemaphoreInfo(); status=AppendValueToLinkedList(delegate_cache,delegate_info); if( IfMagickFalse(status) ) (void) ThrowMagickException(exception,GetMagickModule(), @@ -1492,8 +1494,6 @@ static MagickBooleanType LoadDelegateCache(LinkedListInfo *delegate_cache, if (LocaleCompare((char *) keyword,"thread-support") == 0) { delegate_info->thread_support=IsStringTrue(token); - if (delegate_info->thread_support != MagickFalse) - delegate_info->semaphore=AcquireSemaphoreInfo(); break; } break;