Sign in Join
FPDoc Onlineexperiment

TPooledMemManager class

In unit PooledMM

Pooled memory manager.

Declaration

pascal
TPooledMemManager = class

Description

TPooledMemManager is a class which maintains a linked list of blocks, represented by the TPooledMemManagerItem record. It should not be used directly, but should be descended from and the descendent should implement the actual memory manager.

See also

Properties

MinimumFreeCountpublicMinimum count of free items in the list.
MaximumFreeCountRatiopublicMaximum ratio of free items over total items.
CountpublicNumber of items in the list.
FreeCountpublicNumber of free items in the list.
AllocatedCountpublicTotal number of allocated items in the list.
FreedCountpublicTotal number of freed items in the list.

Methods

DisposeItemprotected
NewItemprotected
FreeFirstItemprotected
ClearpublicClears the list.
CreatepublicCreates a new instance of the TPooledMemManager class.
DestroypublicRemoves an instance of TPooledMemManager class from memory.

Fields

FFirstFreeprotected
FFreeCountprotected
FCountprotected
FMinFreeprotected
FMaxFreeRatioprotected
FAllocatedCountprotected
FFreedCountprotected

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.