*/
MagickPrivate MagickBooleanType AnnotateComponentGenesis(void)
{
- annotate_semaphore=AcquireSemaphoreInfo();
+ if (annotate_semaphore == (SemaphoreInfo *) NULL)
+ annotate_semaphore=AcquireSemaphoreInfo();
return(MagickTrue);
}
\f
MagickPrivate void AnnotateComponentTerminus(void)
{
if (annotate_semaphore == (SemaphoreInfo *) NULL)
- annotate_semaphore=AcquireSemaphoreInfo();
+ ActivateSemaphoreInfo(&annotate_semaphore);
RelinquishSemaphoreInfo(&annotate_semaphore);
}
\f
status;
if (annotate_semaphore == (SemaphoreInfo *) NULL)
- annotate_semaphore=AcquireSemaphoreInfo();
+ ActivateSemaphoreInfo(&annotate_semaphore);
LockSemaphoreInfo(annotate_semaphore);
status=XRenderImage(image,draw_info,offset,metrics,exception);
UnlockSemaphoreInfo(annotate_semaphore);