{
static size_t
id = 0;
-
+ size_t nID = 0;
if (wand_semaphore == (SemaphoreInfo *) NULL)
ActivateSemaphoreInfo(&wand_semaphore);
LockSemaphoreInfo(wand_semaphore);
id++;
(void) AddValueToSplayTree(wand_ids,(const void *) id,(const void *) id);
instantiate_wand=MagickTrue;
+ nID = id;
UnlockSemaphoreInfo(wand_semaphore);
- return(id);
+ return(nID);
}
\f
/*
{
LockSemaphoreInfo(wand_semaphore);
if (wand_ids != (SplayTreeInfo *) NULL)
- (void) DeleteNodeByValueFromSplayTree(wand_ids,(const void *) id);
+ (void) DeleteNodeFromSplayTree(wand_ids,(const void *) id);
UnlockSemaphoreInfo(wand_semaphore);
}