NAMEresource - Minitor or Limit Resource Consumption
SYNOPSISMagickBooleanType AcquireMagickResource( const ResourceType type, const MagickSizeType size ); int AcquireUniqueFileResource( char *path ); unsigned long GetMagickResource( const ResourceType type ); MagickBooleanType ListMagickResourceInfo( FILE *file, ExceptionInfo *exception ); void RelinquishMagickResource( const ResourceType type, const MagickSizeType size ); MagickBooleanType RelinquishUniqueFileResource( const char *path ); MagickBooleanType SetMagickResourceLimit( const ResourceType type, const unsigned long limit );
FUNCTION DESCRIPTIONS
AcquireMagickResourceAcquireMagickResource() acquires resources of the specified type. MagickTrue is returned if the specified resource is available otherwise MagickFalse. The format of the AcquireMagickResource() method is: MagickBooleanType AcquireMagickResource ( const ResourceType type, const MagickSizeType size ); A description of each parameter follows:
AcquireUniqueFileResourceAcquireUniqueFileResource() returns a unique file name, and returns a file descriptor for the file open for reading and writing. The format of the AcquireUniqueFileResource() method is: int AcquireUniqueFileResource ( char *path ); A description of each parameter follows:
GetMagickResourceGetMagickResource() returns the the specified resource in megabytes. The format of the GetMagickResource() method is: unsigned long GetMagickResource ( const ResourceType type ); A description of each parameter follows:
ListMagickResourceInfoListMagickResourceInfo() lists the resource info to a file. The format of the ListMagickResourceInfo method is: MagickBooleanType ListMagickResourceInfo ( FILE *file, ExceptionInfo *exception ); A description of each parameter follows.
RelinquishMagickResourceRelinquishMagickResource() relinquishes resources of the specified type. The format of the RelinquishMagickResource() method is: void RelinquishMagickResource ( const ResourceType type, const MagickSizeType size ); A description of each parameter follows:
RelinquishUniqueFileResourceRelinquishUniqueFileResource() relinquishes a unique file resource. The format of the RelinquishUniqueFileResource() method is: MagickBooleanType RelinquishUniqueFileResource ( const char *path ); A description of each parameter follows:
SetMagickResourceLimitSetMagickResourceLimit() sets the limit for a particular resource in megabytes. The format of the SetMagickResourceLimit() method is: MagickBooleanType SetMagickResourceLimit ( const ResourceType type, const unsigned long limit ); A description of each parameter follows:
|