MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
resource.c File Reference
Include dependency graph for resource.c:

Go to the source code of this file.

Data Structures

struct  _ResourceInfo
 

Macros

#define MagickPathTemplate   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" /* min 6 X's */
 
#define NumberOfResourceTypes    (sizeof(resource_semaphore)/sizeof(*resource_semaphore))
 
#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)
 
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 []
 
static SplayTreeInfotemporary_resources = (SplayTreeInfo *) NULL
 

Macro Definition Documentation

◆ MagickPathTemplate

#define MagickPathTemplate   "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" /* min 6 X's */

Definition at line 73 of file resource.c.

◆ NumberOfResourceTypes

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

Definition at line 74 of file resource.c.

◆ O_NOFOLLOW

#define O_NOFOLLOW   0

◆ TMP_MAX

#define TMP_MAX   238328

Typedef Documentation

◆ ResourceInfo

typedef struct _ResourceInfo ResourceInfo

Function Documentation

◆ AcquireMagickResource()

◆ AcquireUniqueFileResource()

◆ AsynchronousResourceComponentTerminus()

MagickPrivate void AsynchronousResourceComponentTerminus ( void  )

◆ DestroyTemporaryResources()

static void * DestroyTemporaryResources ( void *  temporary_resource)
static

Definition at line 461 of file resource.c.

References DestroyString(), and ShredFile().

Referenced by AcquireUniqueFileResource().

◆ GetMagickResource()

◆ GetMagickResourceLimit()

◆ GetPathTemplate()

◆ ListMagickResourceInfo()

◆ RelinquishMagickResource()

◆ RelinquishUniqueFileResource()

◆ ResourceComponentGenesis()

◆ ResourceComponentTerminus()

◆ SetMagickResourceLimit()

Variable Documentation

◆ random_info

◆ resource_info

◆ resource_semaphore

◆ temporary_resources