" enter ReadOnePNGImage()");
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- LockSemaphoreInfo(png_semaphore);
+ (void) LockSemaphoreInfo(png_semaphore);
#endif
#if (PNG_LIBPNG_VER < 10007)
*/
png_destroy_read_struct(&ping,&ping_info,&end_info);
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- UnlockSemaphoreInfo(png_semaphore);
+ (void) UnlockSemaphoreInfo(png_semaphore);
#endif
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
mng_info->scenes_found-1);
png_destroy_read_struct(&ping,&ping_info,&end_info);
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- UnlockSemaphoreInfo(png_semaphore);
+ (void) UnlockSemaphoreInfo(png_semaphore);
#endif
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
*/
png_destroy_read_struct(&ping,&ping_info,&end_info);
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- UnlockSemaphoreInfo(png_semaphore);
+ (void) UnlockSemaphoreInfo(png_semaphore);
#endif
if (quantum_info != (QuantumInfo *) NULL)
quantum_info = DestroyQuantumInfo(quantum_info);
image->colors=2;
(void) SetImageBackgroundColor(image);
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- UnlockSemaphoreInfo(png_semaphore);
+ (void) UnlockSemaphoreInfo(png_semaphore);
#endif
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
png_pixels=(unsigned char *) RelinquishMagickMemory(png_pixels);
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- UnlockSemaphoreInfo(png_semaphore);
+ (void) UnlockSemaphoreInfo(png_semaphore);
#endif
if (logging != MagickFalse)
" enter WriteOnePNGImage()");
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- LockSemaphoreInfo(png_semaphore);
+ (void) LockSemaphoreInfo(png_semaphore);
#endif
quantum_info = (QuantumInfo *) NULL;
#endif
png_destroy_write_struct(&ping,&ping_info);
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- UnlockSemaphoreInfo(png_semaphore);
+ (void) UnlockSemaphoreInfo(png_semaphore);
#endif
return(MagickFalse);
}
if (png_pixels != (unsigned char *) NULL)
png_pixels=(unsigned char *) RelinquishMagickMemory(png_pixels);
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- UnlockSemaphoreInfo(png_semaphore);
+ (void) UnlockSemaphoreInfo(png_semaphore);
#endif
return(MagickFalse);
}
png_pixels=(unsigned char *) RelinquishMagickMemory(png_pixels);
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
- UnlockSemaphoreInfo(png_semaphore);
+ (void) UnlockSemaphoreInfo(png_semaphore);
#endif
if (logging != MagickFalse)
if (tiff_semaphore == (SemaphoreInfo *) NULL)
tiff_semaphore=AllocateSemaphoreInfo();
- LockSemaphoreInfo(tiff_semaphore);
+ (void) LockSemaphoreInfo(tiff_semaphore);
if (instantiate_key == MagickFalse)
{
if (MagickCreateThreadKey(&tiff_exception) == MagickFalse)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
instantiate_key=MagickTrue;
}
- UnlockSemaphoreInfo(tiff_semaphore);
+ (void) UnlockSemaphoreInfo(tiff_semaphore);
*version='\0';
#if defined(TIFF_VERSION)
(void) FormatMagickString(version,MaxTextExtent,"%d",TIFF_VERSION);
(void) UnregisterMagickInfo("TIF");
(void) UnregisterMagickInfo("TIFF");
(void) UnregisterMagickInfo("TIFF64");
- LockSemaphoreInfo(tiff_semaphore);
+ (void) LockSemaphoreInfo(tiff_semaphore);
if (instantiate_key != MagickFalse)
if (MagickDeleteThreadKey(tiff_exception) == MagickFalse)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
instantiate_key=MagickFalse;
- UnlockSemaphoreInfo(tiff_semaphore);
+ (void) UnlockSemaphoreInfo(tiff_semaphore);
DestroySemaphoreInfo(&tiff_semaphore);
}
\f
{
if (cache_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&cache_semaphore);
- LockSemaphoreInfo(cache_semaphore);
+ (void) LockSemaphoreInfo(cache_semaphore);
if ((cache_resources == (SplayTreeInfo *) NULL) &&
(instantiate_cache == MagickFalse))
{
NULL,(void *(*)(void *)) NULL,(void *(*)(void *)) NULL);
instantiate_cache=MagickTrue;
}
- UnlockSemaphoreInfo(cache_semaphore);
+ (void) UnlockSemaphoreInfo(cache_semaphore);
}
(void) AddValueToSplayTree(cache_resources,cache_info,cache_info);
return((Cache ) cache_info);
{
if (cache_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&cache_semaphore);
- LockSemaphoreInfo(cache_semaphore);
+ (void) LockSemaphoreInfo(cache_semaphore);
if (cache_resources != (SplayTreeInfo *) NULL)
cache_resources=DestroySplayTree(cache_resources);
instantiate_cache=MagickFalse;
- UnlockSemaphoreInfo(cache_semaphore);
+ (void) UnlockSemaphoreInfo(cache_semaphore);
DestroySemaphoreInfo(&cache_semaphore);
}
\f
int
status;
- LockSemaphoreInfo(cache_info->disk_semaphore);
+ (void) LockSemaphoreInfo(cache_info->disk_semaphore);
status=close(cache_info->file);
cache_info->file=(-1);
RelinquishMagickResource(FileResource,1);
- UnlockSemaphoreInfo(cache_info->disk_semaphore);
+ (void) UnlockSemaphoreInfo(cache_info->disk_semaphore);
return(status == -1 ? MagickFalse : MagickTrue);
}
*/
if (GetMagickResource(FileResource) < GetMagickResourceLimit(FileResource))
return;
- LockSemaphoreInfo(cache_semaphore);
+ (void) LockSemaphoreInfo(cache_semaphore);
if (cache_resources == (SplayTreeInfo *) NULL)
{
- UnlockSemaphoreInfo(cache_semaphore);
+ (void) UnlockSemaphoreInfo(cache_semaphore);
return;
}
ResetSplayTreeIterator(cache_resources);
}
if (q != (CacheInfo *) NULL)
(void) ClosePixelCacheOnDisk(q); /* relinquish least recently used cache */
- UnlockSemaphoreInfo(cache_semaphore);
+ (void) UnlockSemaphoreInfo(cache_semaphore);
}
static inline MagickSizeType MagickMax(const MagickSizeType x,
/*
Open pixel cache on disk.
*/
- LockSemaphoreInfo(cache_info->disk_semaphore);
+ (void) LockSemaphoreInfo(cache_info->disk_semaphore);
if (cache_info->file != -1)
{
- UnlockSemaphoreInfo(cache_info->disk_semaphore);
+ (void) UnlockSemaphoreInfo(cache_info->disk_semaphore);
return(MagickTrue); /* cache already open */
}
LimitPixelCacheDescriptors();
}
if (file == -1)
{
- UnlockSemaphoreInfo(cache_info->disk_semaphore);
+ (void) UnlockSemaphoreInfo(cache_info->disk_semaphore);
return(MagickFalse);
}
(void) AcquireMagickResource(FileResource,1);
cache_info->file=file;
cache_info->timestamp=time(0);
- UnlockSemaphoreInfo(cache_info->disk_semaphore);
+ (void) UnlockSemaphoreInfo(cache_info->disk_semaphore);
return(MagickTrue);
}
{
if (coder_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&coder_semaphore);
- LockSemaphoreInfo(coder_semaphore);
+ (void) LockSemaphoreInfo(coder_semaphore);
if (coder_list != (SplayTreeInfo *) NULL)
coder_list=DestroySplayTree(coder_list);
instantiate_coder=MagickFalse;
- UnlockSemaphoreInfo(coder_semaphore);
+ (void) UnlockSemaphoreInfo(coder_semaphore);
DestroySemaphoreInfo(&coder_semaphore);
}
\f
/*
Generate coder list.
*/
- LockSemaphoreInfo(coder_semaphore);
+ (void) LockSemaphoreInfo(coder_semaphore);
ResetSplayTreeIterator(coder_list);
p=(const CoderInfo *) GetNextValueInSplayTree(coder_list);
for (i=0; p != (const CoderInfo *) NULL; )
coder_map[i++]=p;
p=(const CoderInfo *) GetNextValueInSplayTree(coder_list);
}
- UnlockSemaphoreInfo(coder_semaphore);
+ (void) UnlockSemaphoreInfo(coder_semaphore);
qsort((void *) coder_map,(size_t) i,sizeof(*coder_map),CoderInfoCompare);
coder_map[i]=(CoderInfo *) NULL;
*number_coders=(unsigned long) i;
/*
Generate coder list.
*/
- LockSemaphoreInfo(coder_semaphore);
+ (void) LockSemaphoreInfo(coder_semaphore);
ResetSplayTreeIterator(coder_list);
p=(const CoderInfo *) GetNextValueInSplayTree(coder_list);
for (i=0; p != (const CoderInfo *) NULL; )
coder_map[i++]=ConstantString(p->name);
p=(const CoderInfo *) GetNextValueInSplayTree(coder_list);
}
- UnlockSemaphoreInfo(coder_semaphore);
+ (void) UnlockSemaphoreInfo(coder_semaphore);
qsort((void *) coder_map,(size_t) i,sizeof(*coder_map),CoderCompare);
coder_map[i]=(char *) NULL;
*number_coders=(unsigned long) i;
{
if (coder_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&coder_semaphore);
- LockSemaphoreInfo(coder_semaphore);
+ (void) LockSemaphoreInfo(coder_semaphore);
if ((coder_list == (SplayTreeInfo *) NULL) &&
(instantiate_coder == MagickFalse))
{
(void) LoadCoderLists(MagickCoderFilename,exception);
instantiate_coder=MagickTrue;
}
- UnlockSemaphoreInfo(coder_semaphore);
+ (void) UnlockSemaphoreInfo(coder_semaphore);
}
return(coder_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse);
}
{
if (color_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&color_semaphore);
- LockSemaphoreInfo(color_semaphore);
+ (void) LockSemaphoreInfo(color_semaphore);
if (color_list != (LinkedListInfo *) NULL)
color_list=DestroyLinkedList(color_list,DestroyColorElement);
instantiate_color=MagickFalse;
- UnlockSemaphoreInfo(color_semaphore);
+ (void) UnlockSemaphoreInfo(color_semaphore);
DestroySemaphoreInfo(&color_semaphore);
}
\f
/*
Search for color tag.
*/
- LockSemaphoreInfo(color_semaphore);
+ (void) LockSemaphoreInfo(color_semaphore);
ResetLinkedListIterator(color_list);
p=(const ColorInfo *) GetNextValueInLinkedList(color_list);
while (p != (const ColorInfo *) NULL)
else
(void) InsertValueInLinkedList(color_list,0,
RemoveElementByValueFromLinkedList(color_list,p));
- UnlockSemaphoreInfo(color_semaphore);
+ (void) UnlockSemaphoreInfo(color_semaphore);
return(p);
}
\f
/*
Generate color list.
*/
- LockSemaphoreInfo(color_semaphore);
+ (void) LockSemaphoreInfo(color_semaphore);
ResetLinkedListIterator(color_list);
p=(const ColorInfo *) GetNextValueInLinkedList(color_list);
for (i=0; p != (const ColorInfo *) NULL; )
colors[i++]=p;
p=(const ColorInfo *) GetNextValueInLinkedList(color_list);
}
- UnlockSemaphoreInfo(color_semaphore);
+ (void) UnlockSemaphoreInfo(color_semaphore);
qsort((void *) colors,(size_t) i,sizeof(*colors),ColorInfoCompare);
colors[i]=(ColorInfo *) NULL;
*number_colors=(unsigned long) i;
/*
Generate color list.
*/
- LockSemaphoreInfo(color_semaphore);
+ (void) LockSemaphoreInfo(color_semaphore);
ResetLinkedListIterator(color_list);
p=(const ColorInfo *) GetNextValueInLinkedList(color_list);
for (i=0; p != (const ColorInfo *) NULL; )
colors[i++]=ConstantString(p->name);
p=(const ColorInfo *) GetNextValueInLinkedList(color_list);
}
- UnlockSemaphoreInfo(color_semaphore);
+ (void) UnlockSemaphoreInfo(color_semaphore);
qsort((void *) colors,(size_t) i,sizeof(*colors),ColorCompare);
colors[i]=(char *) NULL;
*number_colors=(unsigned long) i;
{
if (color_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&color_semaphore);
- LockSemaphoreInfo(color_semaphore);
+ (void) LockSemaphoreInfo(color_semaphore);
if ((color_list == (LinkedListInfo *) NULL) &&
(instantiate_color == MagickFalse))
{
(void) LoadColorLists(ColorFilename,exception);
instantiate_color=MagickTrue;
}
- UnlockSemaphoreInfo(color_semaphore);
+ (void) UnlockSemaphoreInfo(color_semaphore);
}
return(color_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse);
}
{
if (configure_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&configure_semaphore);
- LockSemaphoreInfo(configure_semaphore);
+ (void) LockSemaphoreInfo(configure_semaphore);
if (configure_list != (LinkedListInfo *) NULL)
configure_list=DestroyLinkedList(configure_list,DestroyConfigureElement);
configure_list=(LinkedListInfo *) NULL;
instantiate_configure=MagickFalse;
- UnlockSemaphoreInfo(configure_semaphore);
+ (void) UnlockSemaphoreInfo(configure_semaphore);
DestroySemaphoreInfo(&configure_semaphore);
}
\f
/*
Search for configure tag.
*/
- LockSemaphoreInfo(configure_semaphore);
+ (void) LockSemaphoreInfo(configure_semaphore);
ResetLinkedListIterator(configure_list);
p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list);
while (p != (const ConfigureInfo *) NULL)
if (p != (ConfigureInfo *) NULL)
(void) InsertValueInLinkedList(configure_list,0,
RemoveElementByValueFromLinkedList(configure_list,p));
- UnlockSemaphoreInfo(configure_semaphore);
+ (void) UnlockSemaphoreInfo(configure_semaphore);
return(p);
}
\f
/*
Generate configure list.
*/
- LockSemaphoreInfo(configure_semaphore);
+ (void) LockSemaphoreInfo(configure_semaphore);
ResetLinkedListIterator(configure_list);
p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list);
for (i=0; p != (const ConfigureInfo *) NULL; )
options[i++]=p;
p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list);
}
- UnlockSemaphoreInfo(configure_semaphore);
+ (void) UnlockSemaphoreInfo(configure_semaphore);
qsort((void *) options,(size_t) i,sizeof(*options),ConfigureInfoCompare);
options[i]=(ConfigureInfo *) NULL;
*number_options=(unsigned long) i;
GetNumberOfElementsInLinkedList(configure_list)+1UL,sizeof(*options));
if (options == (char **) NULL)
return((char **) NULL);
- LockSemaphoreInfo(configure_semaphore);
+ (void) LockSemaphoreInfo(configure_semaphore);
ResetLinkedListIterator(configure_list);
p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list);
for (i=0; p != (const ConfigureInfo *) NULL; )
options[i++]=ConstantString(p->name);
p=(const ConfigureInfo *) GetNextValueInLinkedList(configure_list);
}
- UnlockSemaphoreInfo(configure_semaphore);
+ (void) UnlockSemaphoreInfo(configure_semaphore);
qsort((void *) options,(size_t) i,sizeof(*options),ConfigureCompare);
options[i]=(char *) NULL;
*number_options=(unsigned long) i;
{
if (configure_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&configure_semaphore);
- LockSemaphoreInfo(configure_semaphore);
+ (void) LockSemaphoreInfo(configure_semaphore);
if ((configure_list == (LinkedListInfo *) NULL) &&
(instantiate_configure == MagickFalse))
{
(void) LoadConfigureLists(ConfigureFilename,exception);
instantiate_configure=MagickTrue;
}
- UnlockSemaphoreInfo(configure_semaphore);
+ (void) UnlockSemaphoreInfo(configure_semaphore);
}
return(configure_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse);
}
{
thread_support=GetMagickThreadSupport(magick_info);
if ((thread_support & DecoderThreadSupport) == 0)
- LockSemaphoreInfo(constitute_semaphore);
+ (void) LockSemaphoreInfo(constitute_semaphore);
image=GetImageDecoder(magick_info)(read_info,exception);
if ((thread_support & DecoderThreadSupport) == 0)
- UnlockSemaphoreInfo(constitute_semaphore);
+ (void) UnlockSemaphoreInfo(constitute_semaphore);
}
else
{
MaxTextExtent);
*read_info->filename='\0';
if (GetDelegateThreadSupport(delegate_info) == MagickFalse)
- LockSemaphoreInfo(constitute_semaphore);
+ (void) LockSemaphoreInfo(constitute_semaphore);
(void) InvokeDelegate(read_info,image,read_info->magick,(char *) NULL,
exception);
if (GetDelegateThreadSupport(delegate_info) == MagickFalse)
- UnlockSemaphoreInfo(constitute_semaphore);
+ (void) UnlockSemaphoreInfo(constitute_semaphore);
image=DestroyImageList(image);
read_info->temporary=MagickTrue;
(void) SetImageInfo(read_info,MagickFalse,exception);
}
thread_support=GetMagickThreadSupport(magick_info);
if ((thread_support & DecoderThreadSupport) == 0)
- LockSemaphoreInfo(constitute_semaphore);
+ (void) LockSemaphoreInfo(constitute_semaphore);
image=(Image *) (GetImageDecoder(magick_info))(read_info,exception);
if ((thread_support & DecoderThreadSupport) == 0)
- UnlockSemaphoreInfo(constitute_semaphore);
+ (void) UnlockSemaphoreInfo(constitute_semaphore);
}
if (read_info->temporary != MagickFalse)
{
*/
thread_support=GetMagickThreadSupport(magick_info);
if ((thread_support & EncoderThreadSupport) == 0)
- LockSemaphoreInfo(constitute_semaphore);
+ (void) LockSemaphoreInfo(constitute_semaphore);
status=GetImageEncoder(magick_info)(write_info,image);
if ((thread_support & EncoderThreadSupport) == 0)
- UnlockSemaphoreInfo(constitute_semaphore);
+ (void) UnlockSemaphoreInfo(constitute_semaphore);
}
else
{
*/
*write_info->filename='\0';
if (GetDelegateThreadSupport(delegate_info) == MagickFalse)
- LockSemaphoreInfo(constitute_semaphore);
+ (void) LockSemaphoreInfo(constitute_semaphore);
status=InvokeDelegate(write_info,image,(char *) NULL,
write_info->magick,&image->exception);
if (GetDelegateThreadSupport(delegate_info) == MagickFalse)
- UnlockSemaphoreInfo(constitute_semaphore);
+ (void) UnlockSemaphoreInfo(constitute_semaphore);
(void) CopyMagickString(image->filename,filename,MaxTextExtent);
}
else
*/
thread_support=GetMagickThreadSupport(magick_info);
if ((thread_support & EncoderThreadSupport) == 0)
- LockSemaphoreInfo(constitute_semaphore);
+ (void) LockSemaphoreInfo(constitute_semaphore);
status=GetImageEncoder(magick_info)(write_info,image);
if ((thread_support & EncoderThreadSupport) == 0)
- UnlockSemaphoreInfo(constitute_semaphore);
+ (void) UnlockSemaphoreInfo(constitute_semaphore);
}
}
}
{
if (delegate_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&delegate_semaphore);
- LockSemaphoreInfo(delegate_semaphore);
+ (void) LockSemaphoreInfo(delegate_semaphore);
if (delegate_list != (LinkedListInfo *) NULL)
delegate_list=DestroyLinkedList(delegate_list,DestroyDelegate);
instantiate_delegate=MagickFalse;
- UnlockSemaphoreInfo(delegate_semaphore);
+ (void) UnlockSemaphoreInfo(delegate_semaphore);
DestroySemaphoreInfo(&delegate_semaphore);
}
\f
/*
Search for named delegate.
*/
- LockSemaphoreInfo(delegate_semaphore);
+ (void) LockSemaphoreInfo(delegate_semaphore);
ResetLinkedListIterator(delegate_list);
p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list);
while (p != (const DelegateInfo *) NULL)
if (p != (const DelegateInfo *) NULL)
(void) InsertValueInLinkedList(delegate_list,0,
RemoveElementByValueFromLinkedList(delegate_list,p));
- UnlockSemaphoreInfo(delegate_semaphore);
+ (void) UnlockSemaphoreInfo(delegate_semaphore);
return(p);
}
\f
/*
Generate delegate list.
*/
- LockSemaphoreInfo(delegate_semaphore);
+ (void) LockSemaphoreInfo(delegate_semaphore);
ResetLinkedListIterator(delegate_list);
p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list);
for (i=0; p != (const DelegateInfo *) NULL; )
delegates[i++]=p;
p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list);
}
- UnlockSemaphoreInfo(delegate_semaphore);
+ (void) UnlockSemaphoreInfo(delegate_semaphore);
qsort((void *) delegates,(size_t) i,sizeof(*delegates),DelegateInfoCompare);
delegates[i]=(DelegateInfo *) NULL;
*number_delegates=(unsigned long) i;
GetNumberOfElementsInLinkedList(delegate_list)+1UL,sizeof(*delegates));
if (delegates == (char **) NULL)
return((char **) NULL);
- LockSemaphoreInfo(delegate_semaphore);
+ (void) LockSemaphoreInfo(delegate_semaphore);
ResetLinkedListIterator(delegate_list);
p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list);
for (i=0; p != (const DelegateInfo *) NULL; )
delegates[i++]=ConstantString(p->encode);
p=(const DelegateInfo *) GetNextValueInLinkedList(delegate_list);
}
- UnlockSemaphoreInfo(delegate_semaphore);
+ (void) UnlockSemaphoreInfo(delegate_semaphore);
qsort((void *) delegates,(size_t) i,sizeof(*delegates),DelegateCompare);
delegates[i]=(char *) NULL;
*number_delegates=(unsigned long) i;
{
if (delegate_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&delegate_semaphore);
- LockSemaphoreInfo(delegate_semaphore);
+ (void) LockSemaphoreInfo(delegate_semaphore);
if ((delegate_list == (LinkedListInfo *) NULL) &&
(instantiate_delegate == MagickFalse))
{
(void) LoadDelegateLists(DelegateFilename,exception);
instantiate_delegate=MagickTrue;
}
- UnlockSemaphoreInfo(delegate_semaphore);
+ (void) UnlockSemaphoreInfo(delegate_semaphore);
}
return(delegate_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse);
}
MagickExport void LiberateSemaphoreInfo(SemaphoreInfo **semaphore_info)
{
(void) LogMagickEvent(DeprecateEvent,GetMagickModule(),"last use: v5.5.7");
- UnlockSemaphoreInfo(*semaphore_info);
+ (void) UnlockSemaphoreInfo(*semaphore_info);
}
\f
/*
assert(exception->signature == MagickSignature);
if (exception->exceptions == (void *) NULL)
return;
- LockSemaphoreInfo(exception->semaphore);
+ (void) LockSemaphoreInfo(exception->semaphore);
p=(ExceptionInfo *) RemoveLastElementFromLinkedList((LinkedListInfo *)
exception->exceptions);
while (p != (ExceptionInfo *) NULL)
exception->severity=UndefinedException;
exception->reason=(char *) NULL;
exception->description=(char *) NULL;
- UnlockSemaphoreInfo(exception->semaphore);
+ (void) UnlockSemaphoreInfo(exception->semaphore);
errno=0;
}
\f
assert(exception->signature == MagickSignature);
if (exception->exceptions == (void *) NULL)
return;
- LockSemaphoreInfo(exception->semaphore);
+ (void) LockSemaphoreInfo(exception->semaphore);
ResetLinkedListIterator((LinkedListInfo *) exception->exceptions);
p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *)
exception->exceptions);
p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *)
exception->exceptions);
}
- UnlockSemaphoreInfo(exception->semaphore);
+ (void) UnlockSemaphoreInfo(exception->semaphore);
ClearMagickException(exception);
}
\f
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickSignature);
- LockSemaphoreInfo(exception->semaphore);
+ (void) LockSemaphoreInfo(exception->semaphore);
exception->severity=UndefinedException;
if (exception->exceptions != (void *) NULL)
exception->exceptions=(void *) DestroyLinkedList((LinkedListInfo *)
relinquish=exception->relinquish;
if (exception->relinquish != MagickFalse)
exception->signature=(~MagickSignature);
- UnlockSemaphoreInfo(exception->semaphore);
+ (void) UnlockSemaphoreInfo(exception->semaphore);
DestroySemaphoreInfo(&exception->semaphore);
if (relinquish != MagickFalse)
exception=(ExceptionInfo *) RelinquishMagickMemory(exception);
assert(relative->signature == MagickSignature);
if (relative->exceptions == (void *) NULL)
return;
- LockSemaphoreInfo(exception->semaphore);
+ (void) LockSemaphoreInfo(exception->semaphore);
ResetLinkedListIterator((LinkedListInfo *) relative->exceptions);
p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *)
relative->exceptions);
p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *)
relative->exceptions);
}
- UnlockSemaphoreInfo(exception->semaphore);
+ (void) UnlockSemaphoreInfo(exception->semaphore);
}
\f
/*
assert(image->signature == MagickSignature);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
- LockSemaphoreInfo(image->semaphore);
+ (void) LockSemaphoreInfo(image->semaphore);
reference_count=image->reference_count;
- UnlockSemaphoreInfo(image->semaphore);
+ (void) UnlockSemaphoreInfo(image->semaphore);
return(reference_count);
}
\f
if (GetImageReferenceCount(*image) <= 1)
return(MagickTrue);
clone_image=CloneImage(*image,0,0,MagickTrue,exception);
- LockSemaphoreInfo((*image)->semaphore);
+ (void) LockSemaphoreInfo((*image)->semaphore);
(*image)->reference_count--;
- UnlockSemaphoreInfo((*image)->semaphore);
+ (void) UnlockSemaphoreInfo((*image)->semaphore);
*image=clone_image;
return(MagickTrue);
}
/*
Generate locale list.
*/
- LockSemaphoreInfo(locale_semaphore);
+ (void) LockSemaphoreInfo(locale_semaphore);
ResetSplayTreeIterator(locale_list);
p=(const LocaleInfo *) GetNextValueInSplayTree(locale_list);
for (i=0; p != (const LocaleInfo *) NULL; )
messages[i++]=p;
p=(const LocaleInfo *) GetNextValueInSplayTree(locale_list);
}
- UnlockSemaphoreInfo(locale_semaphore);
+ (void) UnlockSemaphoreInfo(locale_semaphore);
qsort((void *) messages,(size_t) i,sizeof(*messages),LocaleInfoCompare);
messages[i]=(LocaleInfo *) NULL;
*number_messages=(unsigned long) i;
GetNumberOfNodesInSplayTree(locale_list)+1UL,sizeof(*messages));
if (messages == (char **) NULL)
return((char **) NULL);
- LockSemaphoreInfo(locale_semaphore);
+ (void) LockSemaphoreInfo(locale_semaphore);
p=(const LocaleInfo *) GetNextValueInSplayTree(locale_list);
for (i=0; p != (const LocaleInfo *) NULL; )
{
messages[i++]=ConstantString(p->tag);
p=(const LocaleInfo *) GetNextValueInSplayTree(locale_list);
}
- UnlockSemaphoreInfo(locale_semaphore);
+ (void) UnlockSemaphoreInfo(locale_semaphore);
qsort((void *) messages,(size_t) i,sizeof(*messages),LocaleTagCompare);
messages[i]=(char *) NULL;
*number_messages=(unsigned long) i;
{
if (locale_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&locale_semaphore);
- LockSemaphoreInfo(locale_semaphore);
+ (void) LockSemaphoreInfo(locale_semaphore);
if ((locale_list == (SplayTreeInfo *) NULL) &&
(instantiate_locale == MagickFalse))
{
locale=DestroyString(locale);
instantiate_locale=MagickTrue;
}
- UnlockSemaphoreInfo(locale_semaphore);
+ (void) UnlockSemaphoreInfo(locale_semaphore);
}
return(locale_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse);
}
{
if (locale_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&locale_semaphore);
- LockSemaphoreInfo(locale_semaphore);
+ (void) LockSemaphoreInfo(locale_semaphore);
if (locale_list != (SplayTreeInfo *) NULL)
locale_list=DestroySplayTree(locale_list);
instantiate_locale=MagickFalse;
- UnlockSemaphoreInfo(locale_semaphore);
+ (void) UnlockSemaphoreInfo(locale_semaphore);
DestroySemaphoreInfo(&locale_semaphore);
}
exception=AcquireExceptionInfo();
log_info=GetLogInfo("*",exception);
exception=DestroyExceptionInfo(exception);
- LockSemaphoreInfo(log_semaphore);
+ (void) LockSemaphoreInfo(log_semaphore);
if (log_info->file != (FILE *) NULL)
{
if (log_info->append == MagickFalse)
(void) fclose(log_info->file);
log_info->file=(FILE *) NULL;
}
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
}
\f
/*
/*
Search for log tag.
*/
- LockSemaphoreInfo(log_semaphore);
+ (void) LockSemaphoreInfo(log_semaphore);
ResetLinkedListIterator(log_list);
p=(LogInfo *) GetNextValueInLinkedList(log_list);
while (p != (LogInfo *) NULL)
if (p != (LogInfo *) NULL)
(void) InsertValueInLinkedList(log_list,0,
RemoveElementByValueFromLinkedList(log_list,p));
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
return(p);
}
\f
/*
Generate log list.
*/
- LockSemaphoreInfo(log_semaphore);
+ (void) LockSemaphoreInfo(log_semaphore);
ResetLinkedListIterator(log_list);
p=(const LogInfo *) GetNextValueInLinkedList(log_list);
for (i=0; p != (const LogInfo *) NULL; )
preferences[i++]=p;
p=(const LogInfo *) GetNextValueInLinkedList(log_list);
}
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
qsort((void *) preferences,(size_t) i,sizeof(*preferences),LogInfoCompare);
preferences[i]=(LogInfo *) NULL;
*number_preferences=(unsigned long) i;
/*
Generate log list.
*/
- LockSemaphoreInfo(log_semaphore);
+ (void) LockSemaphoreInfo(log_semaphore);
ResetLinkedListIterator(log_list);
p=(const LogInfo *) GetNextValueInLinkedList(log_list);
for (i=0; p != (const LogInfo *) NULL; )
preferences[i++]=ConstantString(p->name);
p=(const LogInfo *) GetNextValueInLinkedList(log_list);
}
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
qsort((void *) preferences,(size_t) i,sizeof(*preferences),LogCompare);
preferences[i]=(char *) NULL;
*number_preferences=(unsigned long) i;
{
if (log_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&log_semaphore);
- LockSemaphoreInfo(log_semaphore);
+ (void) LockSemaphoreInfo(log_semaphore);
if ((log_list == (LinkedListInfo *) NULL) &&
(instantiate_log == MagickFalse))
{
(void) LoadLogLists(LogFilename,exception);
instantiate_log=MagickTrue;
}
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
}
return(log_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse);
}
{
if (log_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&log_semaphore);
- LockSemaphoreInfo(log_semaphore);
+ (void) LockSemaphoreInfo(log_semaphore);
if (log_list != (LinkedListInfo *) NULL)
log_list=DestroyLinkedList(log_list,DestroyLogElement);
instantiate_log=MagickFalse;
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
DestroySemaphoreInfo(&log_semaphore);
}
\f
exception=AcquireExceptionInfo();
log_info=(LogInfo *) GetLogInfo("*",exception);
exception=DestroyExceptionInfo(exception);
- LockSemaphoreInfo(log_semaphore);
+ (void) LockSemaphoreInfo(log_semaphore);
if ((log_info->event_mask & type) == 0)
{
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
return(MagickTrue);
}
domain=MagickOptionToMnemonic(MagickLogEventOptions,type);
if (text == (char *) NULL)
{
(void) ContinueTimer((TimerInfo *) &log_info->timer);
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
return(MagickFalse);
}
if ((log_info->handler_mask & ConsoleHandler) != 0)
if (filename == (char *) NULL)
{
(void) ContinueTimer((TimerInfo *) &log_info->timer);
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
return(MagickFalse);
}
log_info->append=IsPathAccessible(filename);
filename=(char *) RelinquishMagickMemory(filename);
if (log_info->file == (FILE *) NULL)
{
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
return(MagickFalse);
}
log_info->generation++;
}
text=(char *) RelinquishMagickMemory(text);
(void) ContinueTimer((TimerInfo *) &log_info->timer);
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
return(MagickTrue);
}
log_info=(LogInfo *) GetLogInfo("*",exception);
exception=DestroyExceptionInfo(exception);
option=ParseMagickOption(MagickLogEventOptions,MagickTrue,events);
- LockSemaphoreInfo(log_semaphore);
+ (void) LockSemaphoreInfo(log_semaphore);
log_info=(LogInfo *) GetValueFromLinkedList(log_list,0);
log_info->event_mask=(LogEventType) option;
if (option == -1)
log_info->event_mask=UndefinedEvents;
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
return(log_info->event_mask);
}
\f
exception=AcquireExceptionInfo();
log_info=(LogInfo *) GetLogInfo("*",exception);
exception=DestroyExceptionInfo(exception);
- LockSemaphoreInfo(log_semaphore);
+ (void) LockSemaphoreInfo(log_semaphore);
if (log_info->format != (char *) NULL)
log_info->format=DestroyString(log_info->format);
log_info->format=ConstantString(format);
- UnlockSemaphoreInfo(log_semaphore);
+ (void) UnlockSemaphoreInfo(log_semaphore);
}
\f
/*
/*
Search for magic tag.
*/
- LockSemaphoreInfo(magic_semaphore);
+ (void) LockSemaphoreInfo(magic_semaphore);
ResetLinkedListIterator(magic_list);
p=(const MagicInfo *) GetNextValueInLinkedList(magic_list);
while (p != (const MagicInfo *) NULL)
if (p != (const MagicInfo *) NULL)
(void) InsertValueInLinkedList(magic_list,0,
RemoveElementByValueFromLinkedList(magic_list,p));
- UnlockSemaphoreInfo(magic_semaphore);
+ (void) UnlockSemaphoreInfo(magic_semaphore);
return(p);
}
\f
/*
Generate magic list.
*/
- LockSemaphoreInfo(magic_semaphore);
+ (void) LockSemaphoreInfo(magic_semaphore);
ResetLinkedListIterator(magic_list);
p=(const MagicInfo *) GetNextValueInLinkedList(magic_list);
for (i=0; p != (const MagicInfo *) NULL; )
aliases[i++]=p;
p=(const MagicInfo *) GetNextValueInLinkedList(magic_list);
}
- UnlockSemaphoreInfo(magic_semaphore);
+ (void) UnlockSemaphoreInfo(magic_semaphore);
qsort((void *) aliases,(size_t) i,sizeof(*aliases),MagicInfoCompare);
aliases[i]=(MagicInfo *) NULL;
*number_aliases=(unsigned long) i;
GetNumberOfElementsInLinkedList(magic_list)+1UL,sizeof(*aliases));
if (aliases == (char **) NULL)
return((char **) NULL);
- LockSemaphoreInfo(magic_semaphore);
+ (void) LockSemaphoreInfo(magic_semaphore);
ResetLinkedListIterator(magic_list);
p=(const MagicInfo *) GetNextValueInLinkedList(magic_list);
for (i=0; p != (const MagicInfo *) NULL; )
aliases[i++]=ConstantString(p->name);
p=(const MagicInfo *) GetNextValueInLinkedList(magic_list);
}
- UnlockSemaphoreInfo(magic_semaphore);
+ (void) UnlockSemaphoreInfo(magic_semaphore);
qsort((void *) aliases,(size_t) i,sizeof(*aliases),MagicCompare);
aliases[i]=(char *) NULL;
*number_aliases=(unsigned long) i;
{
if (magic_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&magic_semaphore);
- LockSemaphoreInfo(magic_semaphore);
+ (void) LockSemaphoreInfo(magic_semaphore);
if ((magic_list == (LinkedListInfo *) NULL) &&
(instantiate_magic == MagickFalse))
{
(void) LoadMagicLists(MagicFilename,exception);
instantiate_magic=MagickTrue;
}
- UnlockSemaphoreInfo(magic_semaphore);
+ (void) UnlockSemaphoreInfo(magic_semaphore);
}
return(magic_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse);
}
{
if (magic_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&magic_semaphore);
- LockSemaphoreInfo(magic_semaphore);
+ (void) LockSemaphoreInfo(magic_semaphore);
if (magic_list != (LinkedListInfo *) NULL)
magic_list=DestroyLinkedList(magic_list,DestroyMagicElement);
instantiate_magic=MagickFalse;
- UnlockSemaphoreInfo(magic_semaphore);
+ (void) UnlockSemaphoreInfo(magic_semaphore);
DestroySemaphoreInfo(&magic_semaphore);
}
if (p == (const MagickInfo *) NULL)
return(MagickFalse);
status=MagickFalse;
- LockSemaphoreInfo(magick_semaphore);
+ (void) LockSemaphoreInfo(magick_semaphore);
ResetSplayTreeIterator(magick_list);
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
while (p != (const MagickInfo *) NULL)
}
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
}
- UnlockSemaphoreInfo(magick_semaphore);
+ (void) UnlockSemaphoreInfo(magick_semaphore);
return(status);
}
\f
if (LocaleCompare(name,"*") == 0)
(void) OpenModules(exception);
#endif
- LockSemaphoreInfo(magick_semaphore);
+ (void) LockSemaphoreInfo(magick_semaphore);
ResetSplayTreeIterator(magick_list);
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
- UnlockSemaphoreInfo(magick_semaphore);
+ (void) UnlockSemaphoreInfo(magick_semaphore);
return(p);
}
/*
Find name in list.
*/
- LockSemaphoreInfo(magick_semaphore);
+ (void) LockSemaphoreInfo(magick_semaphore);
ResetSplayTreeIterator(magick_list);
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
while (p != (const MagickInfo *) NULL)
}
}
#endif
- UnlockSemaphoreInfo(magick_semaphore);
+ (void) UnlockSemaphoreInfo(magick_semaphore);
return(p);
}
\f
/*
Generate magick list.
*/
- LockSemaphoreInfo(magick_semaphore);
+ (void) LockSemaphoreInfo(magick_semaphore);
ResetSplayTreeIterator(magick_list);
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
for (i=0; p != (const MagickInfo *) NULL; )
formats[i++]=p;
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
}
- UnlockSemaphoreInfo(magick_semaphore);
+ (void) UnlockSemaphoreInfo(magick_semaphore);
qsort((void *) formats,(size_t) i,sizeof(*formats),MagickInfoCompare);
formats[i]=(MagickInfo *) NULL;
*number_formats=(unsigned long) i;
GetNumberOfNodesInSplayTree(magick_list)+1UL,sizeof(*formats));
if (formats == (char **) NULL)
return((char **) NULL);
- LockSemaphoreInfo(magick_semaphore);
+ (void) LockSemaphoreInfo(magick_semaphore);
ResetSplayTreeIterator(magick_list);
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
for (i=0; p != (const MagickInfo *) NULL; )
formats[i++]=ConstantString(p->name);
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
}
- UnlockSemaphoreInfo(magick_semaphore);
+ (void) UnlockSemaphoreInfo(magick_semaphore);
qsort((void *) formats,(size_t) i,sizeof(*formats),MagickCompare);
formats[i]=(char *) NULL;
*number_formats=(unsigned long) i;
{
if (magick_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&magick_semaphore);
- LockSemaphoreInfo(magick_semaphore);
+ (void) LockSemaphoreInfo(magick_semaphore);
if ((magick_list == (SplayTreeInfo *) NULL) &&
(instantiate_magick == MagickFalse))
{
#endif
instantiate_magick=MagickTrue;
}
- UnlockSemaphoreInfo(magick_semaphore);
+ (void) UnlockSemaphoreInfo(magick_semaphore);
}
return(magick_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse);
}
{
if (magick_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&magick_semaphore);
- LockSemaphoreInfo(magick_semaphore);
+ (void) LockSemaphoreInfo(magick_semaphore);
if (magick_list != (SplayTreeInfo *) NULL)
magick_list=DestroySplayTree(magick_list);
instantiate_magick=MagickFalse;
- UnlockSemaphoreInfo(magick_semaphore);
+ (void) UnlockSemaphoreInfo(magick_semaphore);
DestroySemaphoreInfo(&magick_semaphore);
}
\f
return(MagickFalse);
if (GetNumberOfNodesInSplayTree(magick_list) == 0)
return(MagickFalse);
- LockSemaphoreInfo(magick_semaphore);
+ (void) LockSemaphoreInfo(magick_semaphore);
ResetSplayTreeIterator(magick_list);
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
while (p != (const MagickInfo *) NULL)
p=(const MagickInfo *) GetNextValueInSplayTree(magick_list);
}
status=DeleteNodeByValueFromSplayTree(magick_list,p);
- UnlockSemaphoreInfo(magick_semaphore);
+ (void) UnlockSemaphoreInfo(magick_semaphore);
return(status);
}
#else
if (free_segments == (DataSegmentInfo *) NULL)
{
- LockSemaphoreInfo(memory_semaphore);
+ (void) LockSemaphoreInfo(memory_semaphore);
if (free_segments == (DataSegmentInfo *) NULL)
{
register long
}
free_segments=(&memory_info.segment_pool[0]);
}
- UnlockSemaphoreInfo(memory_semaphore);
+ (void) UnlockSemaphoreInfo(memory_semaphore);
}
- LockSemaphoreInfo(memory_semaphore);
+ (void) LockSemaphoreInfo(memory_semaphore);
memory=AcquireBlock(size == 0 ? 1UL : size);
if (memory == (void *) NULL)
{
if (ExpandHeap(size == 0 ? 1UL : size) != MagickFalse)
memory=AcquireBlock(size == 0 ? 1UL : size);
}
- UnlockSemaphoreInfo(memory_semaphore);
+ (void) UnlockSemaphoreInfo(memory_semaphore);
#endif
return(memory);
}
register long
i;
- LockSemaphoreInfo(memory_semaphore);
- UnlockSemaphoreInfo(memory_semaphore);
+ (void) LockSemaphoreInfo(memory_semaphore);
+ (void) UnlockSemaphoreInfo(memory_semaphore);
for (i=0; i < (long) memory_info.number_segments; i++)
if (memory_info.segments[i]->mapped == MagickFalse)
memory_methods.destroy_memory_handler(
#else
assert((SizeOfBlock(memory) % (4*sizeof(size_t))) == 0);
assert((*BlockHeader(NextBlock(memory)) & PreviousBlockBit) != 0);
- LockSemaphoreInfo(memory_semaphore);
+ (void) LockSemaphoreInfo(memory_semaphore);
if ((*BlockHeader(memory) & PreviousBlockBit) == 0)
{
void
*BlockFooter(memory,SizeOfBlock(memory))=SizeOfBlock(memory);
*BlockHeader(NextBlock(memory))&=(~PreviousBlockBit);
InsertFreeBlock(memory,AllocationPolicy(SizeOfBlock(memory)));
- UnlockSemaphoreInfo(memory_semaphore);
+ (void) UnlockSemaphoreInfo(memory_semaphore);
#endif
return((void *) NULL);
}
if (block == (void *) NULL)
memory=RelinquishMagickMemory(memory);
#else
- LockSemaphoreInfo(memory_semaphore);
+ (void) LockSemaphoreInfo(memory_semaphore);
block=ResizeBlock(memory,size == 0 ? 1UL : size);
if (block == (void *) NULL)
{
if (ExpandHeap(size == 0 ? 1UL : size) == MagickFalse)
{
- UnlockSemaphoreInfo(memory_semaphore);
+ (void) UnlockSemaphoreInfo(memory_semaphore);
memory=RelinquishMagickMemory(memory);
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
}
block=ResizeBlock(memory,size == 0 ? 1UL : size);
assert(block != (void *) NULL);
}
- UnlockSemaphoreInfo(memory_semaphore);
+ (void) UnlockSemaphoreInfo(memory_semaphore);
memory=RelinquishMagickMemory(memory);
#endif
return(block);
*/
mime_info=(const MimeInfo *) NULL;
lsb_first=1;
- LockSemaphoreInfo(mime_semaphore);
+ (void) LockSemaphoreInfo(mime_semaphore);
ResetLinkedListIterator(mime_list);
p=(const MimeInfo *) GetNextValueInLinkedList(mime_list);
while (p != (const MimeInfo *) NULL)
if (p != (const MimeInfo *) NULL)
(void) InsertValueInLinkedList(mime_list,0,
RemoveElementByValueFromLinkedList(mime_list,p));
- UnlockSemaphoreInfo(mime_semaphore);
+ (void) UnlockSemaphoreInfo(mime_semaphore);
return(mime_info);
}
\f
/*
Generate mime list.
*/
- LockSemaphoreInfo(mime_semaphore);
+ (void) LockSemaphoreInfo(mime_semaphore);
ResetLinkedListIterator(mime_list);
p=(const MimeInfo *) GetNextValueInLinkedList(mime_list);
for (i=0; p != (const MimeInfo *) NULL; )
aliases[i++]=p;
p=(const MimeInfo *) GetNextValueInLinkedList(mime_list);
}
- UnlockSemaphoreInfo(mime_semaphore);
+ (void) UnlockSemaphoreInfo(mime_semaphore);
qsort((void *) aliases,(size_t) i,sizeof(*aliases),MimeInfoCompare);
aliases[i]=(MimeInfo *) NULL;
*number_aliases=(unsigned long) i;
GetNumberOfElementsInLinkedList(mime_list)+1UL,sizeof(*aliases));
if (aliases == (char **) NULL)
return((char **) NULL);
- LockSemaphoreInfo(mime_semaphore);
+ (void) LockSemaphoreInfo(mime_semaphore);
ResetLinkedListIterator(mime_list);
p=(const MimeInfo *) GetNextValueInLinkedList(mime_list);
for (i=0; p != (const MimeInfo *) NULL; )
aliases[i++]=ConstantString(p->type);
p=(const MimeInfo *) GetNextValueInLinkedList(mime_list);
}
- UnlockSemaphoreInfo(mime_semaphore);
+ (void) UnlockSemaphoreInfo(mime_semaphore);
qsort((void *) aliases,(size_t) i,sizeof(*aliases),MimeCompare);
aliases[i]=(char *) NULL;
*number_aliases=(unsigned long) i;
{
if (mime_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&mime_semaphore);
- LockSemaphoreInfo(mime_semaphore);
+ (void) LockSemaphoreInfo(mime_semaphore);
if ((mime_list == (LinkedListInfo *) NULL) &&
(instantiate_mime == MagickFalse))
{
(void) LoadMimeLists(MimeFilename,exception);
instantiate_mime=MagickTrue;
}
- UnlockSemaphoreInfo(mime_semaphore);
+ (void) UnlockSemaphoreInfo(mime_semaphore);
}
return(mime_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse);
}
{
if (mime_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&mime_semaphore);
- LockSemaphoreInfo(mime_semaphore);
+ (void) LockSemaphoreInfo(mime_semaphore);
if (mime_list != (LinkedListInfo *) NULL)
mime_list=DestroyLinkedList(mime_list,DestroyMimeElement);
instantiate_mime=MagickFalse;
- UnlockSemaphoreInfo(mime_semaphore);
+ (void) UnlockSemaphoreInfo(mime_semaphore);
DestroySemaphoreInfo(&mime_semaphore);
}
/*
Destroy magick modules.
*/
- LockSemaphoreInfo(module_semaphore);
+ (void) LockSemaphoreInfo(module_semaphore);
#if defined(MAGICKCORE_MODULES_SUPPORT)
if (module_list != (SplayTreeInfo *) NULL)
module_list=DestroySplayTree(module_list);
(void) lt_dlexit();
#endif
instantiate_module=MagickFalse;
- UnlockSemaphoreInfo(module_semaphore);
+ (void) UnlockSemaphoreInfo(module_semaphore);
}
\f
/*
if (LocaleCompare(tag,"*") == 0)
(void) OpenModules(exception);
#endif
- LockSemaphoreInfo(module_semaphore);
+ (void) LockSemaphoreInfo(module_semaphore);
ResetSplayTreeIterator(module_list);
p=(ModuleInfo *) GetNextValueInSplayTree(module_list);
- UnlockSemaphoreInfo(module_semaphore);
+ (void) UnlockSemaphoreInfo(module_semaphore);
return(p);
}
return((ModuleInfo *) GetValueFromSplayTree(module_list,tag));
/*
Generate module list.
*/
- LockSemaphoreInfo(module_semaphore);
+ (void) LockSemaphoreInfo(module_semaphore);
ResetSplayTreeIterator(module_list);
p=(const ModuleInfo *) GetNextValueInSplayTree(module_list);
for (i=0; p != (const ModuleInfo *) NULL; )
modules[i++]=p;
p=(const ModuleInfo *) GetNextValueInSplayTree(module_list);
}
- UnlockSemaphoreInfo(module_semaphore);
+ (void) UnlockSemaphoreInfo(module_semaphore);
qsort((void *) modules,(size_t) i,sizeof(*modules),ModuleInfoCompare);
modules[i]=(ModuleInfo *) NULL;
*number_modules=(unsigned long) i;
{
if (module_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&module_semaphore);
- LockSemaphoreInfo(module_semaphore);
+ (void) LockSemaphoreInfo(module_semaphore);
if ((module_list == (SplayTreeInfo *) NULL) &&
(instantiate_module == MagickFalse))
{
"UnableToInitializeModuleLoader");
instantiate_module=MagickTrue;
}
- UnlockSemaphoreInfo(module_semaphore);
+ (void) UnlockSemaphoreInfo(module_semaphore);
}
return(module_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse);
}
/*
Search for policy tag.
*/
- LockSemaphoreInfo(policy_semaphore);
+ (void) LockSemaphoreInfo(policy_semaphore);
ResetLinkedListIterator(policy_list);
p=(PolicyInfo *) GetNextValueInLinkedList(policy_list);
while (p != (PolicyInfo *) NULL)
else
(void) InsertValueInLinkedList(policy_list,0,
RemoveElementByValueFromLinkedList(policy_list,p));
- UnlockSemaphoreInfo(policy_semaphore);
+ (void) UnlockSemaphoreInfo(policy_semaphore);
return(p);
}
\f
/*
Generate policy list.
*/
- LockSemaphoreInfo(policy_semaphore);
+ (void) LockSemaphoreInfo(policy_semaphore);
ResetLinkedListIterator(policy_list);
p=(const PolicyInfo *) GetNextValueInLinkedList(policy_list);
for (i=0; p != (const PolicyInfo *) NULL; )
policies[i++]=p;
p=(const PolicyInfo *) GetNextValueInLinkedList(policy_list);
}
- UnlockSemaphoreInfo(policy_semaphore);
+ (void) UnlockSemaphoreInfo(policy_semaphore);
policies[i]=(PolicyInfo *) NULL;
*number_policies=(unsigned long) i;
return(policies);
/*
Generate policy list.
*/
- LockSemaphoreInfo(policy_semaphore);
+ (void) LockSemaphoreInfo(policy_semaphore);
ResetLinkedListIterator(policy_list);
p=(const PolicyInfo *) GetNextValueInLinkedList(policy_list);
for (i=0; p != (const PolicyInfo *) NULL; )
policies[i++]=ConstantString(p->name);
p=(const PolicyInfo *) GetNextValueInLinkedList(policy_list);
}
- UnlockSemaphoreInfo(policy_semaphore);
+ (void) UnlockSemaphoreInfo(policy_semaphore);
policies[i]=(char *) NULL;
*number_policies=(unsigned long) i;
return(policies);
{
if (policy_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&policy_semaphore);
- LockSemaphoreInfo(policy_semaphore);
+ (void) LockSemaphoreInfo(policy_semaphore);
if ((policy_list == (LinkedListInfo *) NULL) &&
(instantiate_policy == MagickFalse))
{
(void) LoadPolicyLists(PolicyFilename,exception);
instantiate_policy=MagickTrue;
}
- UnlockSemaphoreInfo(policy_semaphore);
+ (void) UnlockSemaphoreInfo(policy_semaphore);
}
return(policy_list != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse);
}
if (policy_info == (PolicyInfo *) NULL)
return(MagickTrue);
authorized=MagickTrue;
- LockSemaphoreInfo(policy_semaphore);
+ (void) LockSemaphoreInfo(policy_semaphore);
ResetLinkedListIterator(policy_list);
p=(PolicyInfo *) GetNextValueInLinkedList(policy_list);
while ((p != (PolicyInfo *) NULL) && (authorized != MagickFalse))
}
p=(PolicyInfo *) GetNextValueInLinkedList(policy_list);
}
- UnlockSemaphoreInfo(policy_semaphore);
+ (void) UnlockSemaphoreInfo(policy_semaphore);
return(authorized);
}
\f
{
if (policy_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&policy_semaphore);
- LockSemaphoreInfo(policy_semaphore);
+ (void) LockSemaphoreInfo(policy_semaphore);
if (policy_list != (LinkedListInfo *) NULL)
policy_list=DestroyLinkedList(policy_list,DestroyPolicyElement);
instantiate_policy=MagickFalse;
- UnlockSemaphoreInfo(policy_semaphore);
+ (void) UnlockSemaphoreInfo(policy_semaphore);
DestroySemaphoreInfo(&policy_semaphore);
}
{
if (registry_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(®istry_semaphore);
- LockSemaphoreInfo(registry_semaphore);
+ (void) LockSemaphoreInfo(registry_semaphore);
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if (registry != (void *) NULL)
registry=DestroySplayTree(registry);
instantiate_registry=MagickFalse;
- UnlockSemaphoreInfo(registry_semaphore);
+ (void) UnlockSemaphoreInfo(registry_semaphore);
DestroySemaphoreInfo(®istry_semaphore);
}
\f
{
if (registry_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(®istry_semaphore);
- LockSemaphoreInfo(registry_semaphore);
+ (void) LockSemaphoreInfo(registry_semaphore);
if ((registry == (SplayTreeInfo *) NULL) &&
(instantiate_registry == MagickFalse))
{
DestroyRegistryNode);
instantiate_registry=MagickTrue;
}
- UnlockSemaphoreInfo(registry_semaphore);
+ (void) UnlockSemaphoreInfo(registry_semaphore);
}
status=AddValueToSplayTree(registry,ConstantString(key),registry_info);
return(status);
(void) FormatMagickSize(size,resource_request);
if (resource_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&resource_semaphore);
- LockSemaphoreInfo(resource_semaphore);
+ (void) LockSemaphoreInfo(resource_semaphore);
switch (type)
{
case AreaResource:
default:
break;
}
- UnlockSemaphoreInfo(resource_semaphore);
+ (void) UnlockSemaphoreInfo(resource_semaphore);
(void) LogMagickEvent(ResourceEvent,GetMagickModule(),"%s: %s/%s/%s",
MagickOptionToMnemonic(MagickResourceOptions,(long) type),resource_request,
resource_current,resource_limit);
return(file);
if (resource_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&resource_semaphore);
- LockSemaphoreInfo(resource_semaphore);
+ (void) LockSemaphoreInfo(resource_semaphore);
if (temporary_resources == (SplayTreeInfo *) NULL)
temporary_resources=NewSplayTree(CompareSplayTreeString,
RelinquishMagickMemory,DestroyTemporaryResources);
- UnlockSemaphoreInfo(resource_semaphore);
+ (void) UnlockSemaphoreInfo(resource_semaphore);
resource=ConstantString(path);
(void) AddValueToSplayTree(temporary_resources,resource,resource);
return(file);
resource;
resource=0;
- LockSemaphoreInfo(resource_semaphore);
+ (void) LockSemaphoreInfo(resource_semaphore);
switch (type)
{
case AreaResource:
default:
break;
}
- UnlockSemaphoreInfo(resource_semaphore);
+ (void) UnlockSemaphoreInfo(resource_semaphore);
return(resource);
}
\f
resource=0;
if (resource_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&resource_semaphore);
- LockSemaphoreInfo(resource_semaphore);
+ (void) LockSemaphoreInfo(resource_semaphore);
switch (type)
{
case AreaResource:
default:
break;
}
- UnlockSemaphoreInfo(resource_semaphore);
+ (void) UnlockSemaphoreInfo(resource_semaphore);
return(resource);
}
\f
file=stdout;
if (resource_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&resource_semaphore);
- LockSemaphoreInfo(resource_semaphore);
+ (void) LockSemaphoreInfo(resource_semaphore);
(void) FormatMagickSize(resource_info.area_limit,area_limit);
(void) FormatMagickSize(resource_info.memory_limit,memory_limit);
(void) FormatMagickSize(resource_info.map_limit,map_limit);
(unsigned long) resource_info.file_limit,area_limit,memory_limit,map_limit,
disk_limit,(unsigned long) resource_info.thread_limit,time_limit);
(void) fflush(file);
- UnlockSemaphoreInfo(resource_semaphore);
+ (void) UnlockSemaphoreInfo(resource_semaphore);
return(MagickTrue);
}
\f
(void) FormatMagickSize(size,resource_request);
if (resource_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&resource_semaphore);
- LockSemaphoreInfo(resource_semaphore);
+ (void) LockSemaphoreInfo(resource_semaphore);
switch (type)
{
case AreaResource:
default:
break;
}
- UnlockSemaphoreInfo(resource_semaphore);
+ (void) UnlockSemaphoreInfo(resource_semaphore);
(void) LogMagickEvent(ResourceEvent,GetMagickModule(),"%s: %s/%s/%s",
MagickOptionToMnemonic(MagickResourceOptions,(long) type),resource_request,
resource_current,resource_limit);
{
if (resource_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&resource_semaphore);
- LockSemaphoreInfo(resource_semaphore);
+ (void) LockSemaphoreInfo(resource_semaphore);
if (temporary_resources != (SplayTreeInfo *) NULL)
temporary_resources=DestroySplayTree(temporary_resources);
if (random_info != (RandomInfo *) NULL)
random_info=DestroyRandomInfo(random_info);
- UnlockSemaphoreInfo(resource_semaphore);
+ (void) UnlockSemaphoreInfo(resource_semaphore);
DestroySemaphoreInfo(&resource_semaphore);
}
\f
{
if (resource_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&resource_semaphore);
- LockSemaphoreInfo(resource_semaphore);
+ (void) LockSemaphoreInfo(resource_semaphore);
switch (type)
{
case AreaResource:
default:
break;
}
- UnlockSemaphoreInfo(resource_semaphore);
+ (void) UnlockSemaphoreInfo(resource_semaphore);
return(MagickTrue);
}
(void) GetTypeInfo("*",exception);
if (type_list == (SplayTreeInfo *) NULL)
return((TypeInfo *) NULL);
- LockSemaphoreInfo(type_semaphore);
+ (void) LockSemaphoreInfo(type_semaphore);
ResetSplayTreeIterator(type_list);
type_info=(const TypeInfo *) NULL;
p=(const TypeInfo *) GetNextValueInSplayTree(type_list);
type_info=p;
break;
}
- UnlockSemaphoreInfo(type_semaphore);
+ (void) UnlockSemaphoreInfo(type_semaphore);
if (type_info != (const TypeInfo *) NULL)
return(type_info);
/*
Check for types in the same family.
*/
max_score=0;
- LockSemaphoreInfo(type_semaphore);
+ (void) LockSemaphoreInfo(type_semaphore);
ResetSplayTreeIterator(type_list);
p=(const TypeInfo *) GetNextValueInSplayTree(type_list);
while (p != (const TypeInfo *) NULL)
}
p=(const TypeInfo *) GetNextValueInSplayTree(type_list);
}
- UnlockSemaphoreInfo(type_semaphore);
+ (void) UnlockSemaphoreInfo(type_semaphore);
if (type_info != (const TypeInfo *) NULL)
return(type_info);
/*
/*
Generate type list.
*/
- LockSemaphoreInfo(type_semaphore);
+ (void) LockSemaphoreInfo(type_semaphore);
ResetSplayTreeIterator(type_list);
p=(const TypeInfo *) GetNextValueInSplayTree(type_list);
for (i=0; p != (const TypeInfo *) NULL; )
fonts[i++]=p;
p=(const TypeInfo *) GetNextValueInSplayTree(type_list);
}
- UnlockSemaphoreInfo(type_semaphore);
+ (void) UnlockSemaphoreInfo(type_semaphore);
qsort((void *) fonts,(size_t) i,sizeof(*fonts),TypeInfoCompare);
fonts[i]=(TypeInfo *) NULL;
*number_fonts=(unsigned long) i;
/*
Generate type list.
*/
- LockSemaphoreInfo(type_semaphore);
+ (void) LockSemaphoreInfo(type_semaphore);
ResetSplayTreeIterator(type_list);
p=(const TypeInfo *) GetNextValueInSplayTree(type_list);
for (i=0; p != (const TypeInfo *) NULL; )
fonts[i++]=ConstantString(p->name);
p=(const TypeInfo *) GetNextValueInSplayTree(type_list);
}
- UnlockSemaphoreInfo(type_semaphore);
+ (void) UnlockSemaphoreInfo(type_semaphore);
qsort((void *) fonts,(size_t) i,sizeof(*fonts),TypeCompare);
fonts[i]=(char *) NULL;
*number_fonts=(unsigned long) i;
{
if (type_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&type_semaphore);
- LockSemaphoreInfo(type_semaphore);
+ (void) LockSemaphoreInfo(type_semaphore);
if ((type_list == (SplayTreeInfo *) NULL) &&
(instantiate_type == MagickFalse))
{
#endif
instantiate_type=MagickTrue;
}
- UnlockSemaphoreInfo(type_semaphore);
+ (void) UnlockSemaphoreInfo(type_semaphore);
}
return(type_list != (SplayTreeInfo *) NULL ? MagickTrue : MagickFalse);
}
{
if (type_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&type_semaphore);
- LockSemaphoreInfo(type_semaphore);
+ (void) LockSemaphoreInfo(type_semaphore);
if (type_list != (SplayTreeInfo *) NULL)
type_list=DestroySplayTree(type_list);
instantiate_type=MagickFalse;
- UnlockSemaphoreInfo(type_semaphore);
+ (void) UnlockSemaphoreInfo(type_semaphore);
DestroySemaphoreInfo(&type_semaphore);
}
if (wand_semaphore == (SemaphoreInfo *) NULL)
AcquireSemaphoreInfo(&wand_semaphore);
- LockSemaphoreInfo(wand_semaphore);
+ (void) LockSemaphoreInfo(wand_semaphore);
if ((wand_ids == (SplayTreeInfo *) NULL) && (instantiate_wand == MagickFalse))
{
wand_ids=NewSplayTree((int (*)(const void *,const void *)) NULL,
}
id++;
(void) AddValueToSplayTree(wand_ids,(const void *) id,(const void *) id);
- UnlockSemaphoreInfo(wand_semaphore);
+ (void) UnlockSemaphoreInfo(wand_semaphore);
return(id);
}
\f
*/
WandExport void DestroyWandIds(void)
{
- LockSemaphoreInfo(wand_semaphore);
+ (void) LockSemaphoreInfo(wand_semaphore);
if (wand_ids != (SplayTreeInfo *) NULL)
wand_ids=DestroySplayTree(wand_ids);
instantiate_wand=MagickFalse;
- UnlockSemaphoreInfo(wand_semaphore);
+ (void) UnlockSemaphoreInfo(wand_semaphore);
DestroySemaphoreInfo(&wand_semaphore);
}
\f
*/
WandExport void RelinquishWandId(const unsigned long id)
{
- LockSemaphoreInfo(wand_semaphore);
+ (void) LockSemaphoreInfo(wand_semaphore);
if (wand_ids != (SplayTreeInfo *) NULL)
(void) DeleteNodeByValueFromSplayTree(wand_ids,(const void *) id);
- UnlockSemaphoreInfo(wand_semaphore);
+ (void) UnlockSemaphoreInfo(wand_semaphore);
}