MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
Go to the source code of this file.
Macros | |
#define | MagickResourceInfinity (MagickULLConstant(~0) >> 1) |
Enumerations | |
enum | ResourceType { UndefinedResource , AreaResource , DiskResource , FileResource , HeightResource , MapResource , MemoryResource , ThreadResource , ThrottleResource , TimeResource , WidthResource , ListLengthResource } |
Functions | |
MagickExport int | AcquireUniqueFileResource (char *) |
MagickExport MagickBooleanType | AcquireMagickResource (const ResourceType, const MagickSizeType) |
MagickExport MagickBooleanType | GetPathTemplate (char *) |
MagickExport MagickBooleanType | ListMagickResourceInfo (FILE *, ExceptionInfo *) |
MagickExport MagickBooleanType | RelinquishUniqueFileResource (const char *) |
MagickExport MagickBooleanType | SetMagickResourceLimit (const ResourceType, const MagickSizeType) |
MagickExport MagickSizeType | GetMagickResource (const ResourceType) |
MagickExport MagickSizeType | GetMagickResourceLimit (const ResourceType) |
MagickExport void | RelinquishMagickResource (const ResourceType, const MagickSizeType) |
#define MagickResourceInfinity (MagickULLConstant(~0) >> 1) |
Definition at line 41 of file resource_.h.
enum ResourceType |
Enumerator | |
---|---|
UndefinedResource | |
AreaResource | |
DiskResource | |
FileResource | |
HeightResource | |
MapResource | |
MemoryResource | |
ThreadResource | |
ThrottleResource | |
TimeResource | |
WidthResource | |
ListLengthResource |
Definition at line 25 of file resource_.h.
MagickExport MagickBooleanType AcquireMagickResource | ( | const | ResourceType, |
const | MagickSizeType | ||
) |
MagickExport int AcquireUniqueFileResource | ( | char * | path | ) |
Definition at line 551 of file resource.c.
References AcquireRandomInfo(), ActivateSemaphoreInfo(), AddValueToSplayTree(), CompareSplayTreeString(), ConstantString(), DestroyStringInfo(), DestroyTemporaryResources(), FileResource, GetLogEventMask(), GetMagickModule, GetPathTemplate(), GetRandomKey(), GetStringInfoDatum(), GetStringInfoLength(), LockSemaphoreInfo(), LogMagickEvent(), MagickPathTemplate, NewSplayTree(), O_BINARY, O_NOFOLLOW, open_utf8(), random_info, resource_semaphore, ResourceEvent, S_MODE, temporary_resources, TMP_MAX, and UnlockSemaphoreInfo().
Referenced by AcquireMatrixInfo(), AcquireUniqueFilename(), AcquireUniqueSymbolicLink(), AcquireVirtualMemory(), BlobToFile(), CustomStreamToImage(), HoughLineImage(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), ImageToFile(), InjectImageBlob(), OpenPixelCacheOnDisk(), PreviewImage(), and RenderPostscript().
MagickExport MagickSizeType GetMagickResource | ( | const | ResourceType | ) |
MagickExport MagickSizeType GetMagickResourceLimit | ( | const | ResourceType | ) |
Definition at line 795 of file resource.c.
References ActivateSemaphoreInfo(), _ResourceInfo::area_limit, AreaResource, _ResourceInfo::disk_limit, DiskResource, _ResourceInfo::file_limit, FileResource, _ResourceInfo::height_limit, HeightResource, _ResourceInfo::list_length_limit, ListLengthResource, LockSemaphoreInfo(), _ResourceInfo::map_limit, MapResource, _ResourceInfo::memory_limit, MemoryResource, resource_info, resource_semaphore, _ResourceInfo::thread_limit, ThreadResource, _ResourceInfo::throttle_limit, ThrottleResource, _ResourceInfo::time_limit, TimeResource, UnlockSemaphoreInfo(), _ResourceInfo::width_limit, and WidthResource.
Referenced by AcquireContributionTLS(), AcquireFxInfoPrivate(), AcquireHistogramTLS(), AcquireKmeansTLS(), AcquirePixelCache(), AcquirePixelListTLS(), AcquirePixelTLS(), AcquirePolygonTLS(), AcquireQuantumPixels(), AcquireRandomInfoTLS(), AcquireResampleFilterTLS(), AcquireVirtualCacheView(), BilateralBlurImage(), DestroyContributionTLS(), DestroyFxInfo(), DestroyHistogramTLS(), DestroyKmeansTLS(), DestroyPixelListTLS(), DestroyPixelTLS(), DestroyPolygonTLS(), DestroyRandomInfoTLS(), DestroyResampleFilterTLS(), FxImage(), GetImageDepth(), GetImagePixelCache(), GetMagickNumberThreads(), KmeansImage(), and OpenPixelCache().
MagickExport MagickBooleanType GetPathTemplate | ( | char * | ) |
MagickExport MagickBooleanType ListMagickResourceInfo | ( | FILE * | , |
ExceptionInfo * | |||
) |
MagickExport void RelinquishMagickResource | ( | const | ResourceType, |
const | MagickSizeType | ||
) |
Definition at line 966 of file resource.c.
References ActivateSemaphoreInfo(), CommandOptionToMnemonic(), _ResourceInfo::disk, _ResourceInfo::disk_limit, DiskResource, _ResourceInfo::file, _ResourceInfo::file_limit, FileResource, FormatMagickSize(), GetLogEventMask(), GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickFormatExtent, MagickResourceOptions, MagickTrue, _ResourceInfo::map, _ResourceInfo::map_limit, MapResource, _ResourceInfo::memory, _ResourceInfo::memory_limit, MemoryResource, resource_info, resource_semaphore, ResourceEvent, _ResourceInfo::time, _ResourceInfo::time_limit, TimeResource, and UnlockSemaphoreInfo().
Referenced by AcquireMatrixInfo(), ClosePixelCacheOnDisk(), DestroyBlob(), DestroyMatrixInfo(), DetachBlob(), OpenBlob(), OpenPixelCache(), RelinquishPixelCachePixels(), and SetBlobExtent().
MagickExport MagickBooleanType RelinquishUniqueFileResource | ( | const char * | ) |
MagickExport MagickBooleanType SetMagickResourceLimit | ( | const | ResourceType, |
const | MagickSizeType | ||
) |
Definition at line 1355 of file resource.c.
References ActivateSemaphoreInfo(), _ResourceInfo::area_limit, AreaResource, DestroyString(), _ResourceInfo::disk_limit, DiskResource, _ResourceInfo::file_limit, FileResource, GetOpenMPMaximumThreads(), GetPolicyValue(), _ResourceInfo::height_limit, HeightResource, _ResourceInfo::list_length_limit, ListLengthResource, LockSemaphoreInfo(), MAGICK_SSIZE_MAX, MagickFalse, MagickMax, MagickMin, MagickTrue, _ResourceInfo::map_limit, MapResource, _ResourceInfo::memory_limit, MemoryResource, ResetPixelCacheEpoch(), resource_info, resource_semaphore, StringToMagickSizeType(), _ResourceInfo::thread_limit, ThreadResource, _ResourceInfo::throttle_limit, ThrottleResource, _ResourceInfo::time_limit, TimeResource, UnlockSemaphoreInfo(), _ResourceInfo::width_limit, and WidthResource.
Referenced by ResourceComponentGenesis(), and SetMagickSecurityPolicyValue().