% MagickCore Hash-map and Linked-list Methods %
% %
% Software Design %
-% John Cristy %
+% Cristy %
% December 2002 %
% %
% %
-% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
hashmap_info->map);
hashmap_info->signature=(~MagickSignature);
UnlockSemaphoreInfo(hashmap_info->semaphore);
- DestroySemaphoreInfo(&hashmap_info->semaphore);
+ RelinquishSemaphoreInfo(&hashmap_info->semaphore);
hashmap_info=(HashmapInfo *) RelinquishMagickMemory(hashmap_info);
return(hashmap_info);
}
}
list_info->signature=(~MagickSignature);
UnlockSemaphoreInfo(list_info->semaphore);
- DestroySemaphoreInfo(&list_info->semaphore);
+ RelinquishSemaphoreInfo(&list_info->semaphore);
list_info=(LinkedListInfo *) RelinquishMagickMemory(list_info);
return(list_info);
}
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
(void) ResetMagickMemory(hashmap_info->map,0,(size_t) capacity*
sizeof(*hashmap_info->map));
- hashmap_info->semaphore=AllocateSemaphoreInfo();
+ hashmap_info->semaphore=AcquireSemaphoreInfo();
hashmap_info->signature=MagickSignature;
return(hashmap_info);
}
list_info->head=(ElementInfo *) NULL;
list_info->tail=(ElementInfo *) NULL;
list_info->next=(ElementInfo *) NULL;
- list_info->semaphore=AllocateSemaphoreInfo();
+ list_info->semaphore=AcquireSemaphoreInfo();
list_info->signature=MagickSignature;
return(list_info);
}
}
list_info->signature=(~MagickSignature);
UnlockSemaphoreInfo(list_info->semaphore);
- DestroySemaphoreInfo(&list_info->semaphore);
+ RelinquishSemaphoreInfo(&list_info->semaphore);
list_info=(LinkedListInfo *) RelinquishMagickMemory(list_info);
}
hashmap_info->map=(LinkedListInfo **) RelinquishMagickMemory(