resource.c File Reference

#include "magick/studio.h"
#include "magick/cache.h"
#include "magick/configure.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/hashmap.h"
#include "magick/log.h"
#include "magick/image.h"
#include "magick/memory_.h"
#include "magick/option.h"
#include "magick/policy.h"
#include "magick/random_.h"
#include "magick/registry.h"
#include "magick/resource_.h"
#include "magick/semaphore.h"
#include "magick/signature-private.h"
#include "magick/string_.h"
#include "magick/splay-tree.h"
#include "magick/thread-private.h"
#include "magick/token.h"
#include "magick/utility.h"
Include dependency graph for resource.c:

Go to the source code of this file.

Data Structures

struct  _ResourceInfo

Defines

#define O_NOFOLLOW   0
#define TMP_MAX   238328

Typedefs

typedef struct _ResourceInfo ResourceInfo

Functions

MagickExport MagickBooleanType AcquireMagickResource (const ResourceType type, const MagickSizeType size)
MagickExport void AsynchronousResourceComponentTerminus (void)
static void * DestroyTemporaryResources (void *temporary_resource)
static 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 unsigned long MagickMax (const unsigned long x, const unsigned long y)
static MagickSizeType StringToSizeType (const char *string, const double interval)
MagickExport MagickBooleanType ResourceComponentGenesis (void)
MagickExport 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

Define Documentation

#define O_NOFOLLOW   0
#define TMP_MAX   238328

Typedef Documentation

typedef struct _ResourceInfo ResourceInfo

Function Documentation

MagickExport MagickBooleanType AcquireMagickResource ( const ResourceType  type,
const MagickSizeType  size 
)
MagickExport int AcquireUniqueFileResource ( char *  path  ) 
MagickExport void AsynchronousResourceComponentTerminus ( void   ) 

Definition at line 285 of file resource.c.

References GetNextKeyInSplayTree(), ResetSplayTreeIterator(), and temporary_resources.

Referenced by MagickSignalHandler().

static void* DestroyTemporaryResources ( void *  temporary_resource  )  [static]

Definition at line 329 of file resource.c.

Referenced by AcquireUniqueFileResource().

MagickExport MagickSizeType GetMagickResource ( const ResourceType  type  ) 
MagickExport MagickSizeType GetMagickResourceLimit ( const ResourceType  type  ) 
static MagickBooleanType GetPathTemplate ( char *  path  )  [static]
MagickExport MagickBooleanType ListMagickResourceInfo ( FILE *  file,
ExceptionInfo magick_unusedexception 
)
static unsigned long MagickMax ( const unsigned long  x,
const unsigned long  y 
) [inline, static]

Definition at line 869 of file resource.c.

Referenced by ResourceComponentGenesis().

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 MagickSizeType StringToSizeType ( const char *  string,
const double  interval 
) [inline, static]

Definition at line 877 of file resource.c.

References MagickULLConstant, and StringToDouble().

Referenced by ResourceComponentGenesis().


Variable Documentation

RandomInfo* random_info = (RandomInfo *) NULL [static]

Generated on 19 Nov 2009 for MagickCore by  doxygen 1.6.1