MagickCore  6.9.11
resource.c File Reference
Include dependency graph for resource.c:

Go to the source code of this file.

Data Structures

struct  _ResourceInfo


#define NumberOfResourceTypes   (sizeof(resource_semaphore)/sizeof(*resource_semaphore))
#define O_NOFOLLOW   0
#define TMP_MAX   238328


typedef struct _ResourceInfo ResourceInfo


MagickExport MagickBooleanType AcquireMagickResource (const ResourceType type, const MagickSizeType size)
MagickExport void AsynchronousResourceComponentTerminus (void)
static void * DestroyTemporaryResources (void *temporary_resource)
MagickExport MagickBooleanType GetPathTemplate (char *path)
MagickExport int AcquireUniqueFileResource (char *path)
MagickExport MagickSizeType GetMagickResource (const ResourceType type)
MagickExport MagickSizeType GetMagickResourceLimit (const ResourceType type)
static ssize_t FormatPixelSize (const MagickSizeType size, const MagickBooleanType bi, char *format)
MagickExport MagickBooleanType ListMagickResourceInfo (FILE *file, ExceptionInfo *magick_unused(exception))
MagickExport void RelinquishMagickResource (const ResourceType type, const MagickSizeType size)
MagickExport MagickBooleanType RelinquishUniqueFileResource (const char *path)
MagickExport MagickBooleanType ResourceComponentGenesis (void)
MagickExport void ResourceComponentTerminus (void)
MagickExport MagickBooleanType SetMagickResourceLimit (const ResourceType type, const MagickSizeType limit)


static RandomInforandom_info = (RandomInfo *) NULL
static ResourceInfo resource_info
static SemaphoreInforesource_semaphore []
static SplayTreeInfotemporary_resources = (SplayTreeInfo *) NULL

Macro Definition Documentation


Definition at line 72 of file resource.c.

Referenced by AcquireUniqueFileResource(), and GetPathTemplate().

#define NumberOfResourceTypes   (sizeof(resource_semaphore)/sizeof(*resource_semaphore))

Definition at line 73 of file resource.c.

Referenced by ResourceComponentGenesis(), and ResourceComponentTerminus().

#define O_NOFOLLOW   0
#define TMP_MAX   238328

Typedef Documentation

typedef struct _ResourceInfo ResourceInfo

Function Documentation

MagickExport void AsynchronousResourceComponentTerminus ( void  )
static void* DestroyTemporaryResources ( void *  temporary_resource)

Definition at line 510 of file resource.c.

References DestroyString(), and ShredFile().

Referenced by AcquireUniqueFileResource().

static ssize_t FormatPixelSize ( const MagickSizeType  size,
const MagickBooleanType  bi,
char *  format 

Definition at line 941 of file resource.c.

References FormatLocaleString(), MagickFalse, and MaxTextExtent.

Referenced by ListMagickResourceInfo().

Variable Documentation

ResourceInfo resource_info