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

Go to the source code of this file.

Data Structures

struct  _ResourceInfo
 

Macros

#define O_NOFOLLOW   0
 
#define TMP_MAX   238328
 

Typedefs

typedef struct _ResourceInfo ResourceInfo
 

Functions

MagickExport MagickBooleanType AcquireMagickResource (const ResourceType type, const MagickSizeType size)
 
MagickPrivate 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)
 
MagickExport MagickBooleanType ListMagickResourceInfo (FILE *file, ExceptionInfo *magick_unused(exception))
 
MagickExport void RelinquishMagickResource (const ResourceType type, const MagickSizeType size)
 
MagickExport MagickBooleanType RelinquishUniqueFileResource (const char *path)
 
static MagickSizeType StringToSizeType (const char *string, const double interval)
 
MagickPrivate MagickBooleanType ResourceComponentGenesis (void)
 
MagickPrivate void ResourceComponentTerminus (void)
 
MagickExport MagickBooleanType SetMagickResourceLimit (const ResourceType type, const MagickSizeType limit)
 

Variables

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

Macro Definition Documentation

#define O_NOFOLLOW   0
#define TMP_MAX   238328

Typedef Documentation

typedef struct _ResourceInfo ResourceInfo

Function Documentation

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

Definition at line 384 of file resource.c.

References DestroyString(), and ShredFile().

Referenced by AcquireUniqueFileResource().

static MagickSizeType StringToSizeType ( const char *  string,
const double  interval 
)
inlinestatic

Definition at line 1031 of file resource.c.

References MagickULLConstant, and SiPrefixToDoubleInterval().

Referenced by ResourceComponentGenesis(), and SetMagickResourceLimit().

Variable Documentation