LSharedMemoryPool is a PowerPlant class that implements static shared memory pools that are self-managing and create/delete as needed.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
Source files:
See also:
Purpose:
The constructor creates the object. This constructor inherits from the LReentrantMemoryPool constructor.
Access :
Prototype:
LSharedMemoryPool(UInt32 inPoolSize);Parameters:
This constructor has the following parameter:
Purpose:
The destructor destroys the object.
Access :
Prototype:
virtual ~LSharedMemoryPool();
Purpose:
Adds a user to the pool. Can NOT be called at interrupt time.
Access :
Prototype:
void AddPoolUser( void* inUser,
UInt32 inPoolSize);Parameters:
This method has the following parameters:
Return:
Purpose:
Returns pointer to static shared memory pool. Creates pool if necessary.
Access :
Prototype:
static LSharedMemoryPool * GetSharedPool();Parameters:
Return:
The pointer to the shared memory pool.
Purpose:
Access :
Prototype:
void RemovePoolUser(void* inUser);Parameters:
This method has the following parameters:
Return:
Purpose:
The shared memory poolk pointer.
Access :
Prototype:
LSharedMemoryPool * sSharedMemoryPool;