[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

LSharedMemoryPool



Overview:

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:

 

LSharedMemoryPool()  
~LSharedMemoryPool()  
AddPoolUser()  
GetSharedPool()  
RemovePoolUser()  
 

Data Members:

The data members in this class are:

 

sSharedMemoryPool  
 

Operation:

A .

Source files:

(Networking Classes)

LSharedMemoryPool.h

LSharedMemoryPool.cp

See also:

LReentrantMemoryPool

LSharable

LSharedMemoryPool()

Purpose:

The constructor creates the object. This constructor inherits from the LReentrantMemoryPool constructor.

Access :

Public

Prototype:

LSharedMemoryPool(UInt32 inPoolSize);
Parameters:

This constructor has the following parameter:

 

UInt32  
inPoolSize  
This is the size of the pool.  

~LSharedMemoryPool()

Purpose:

The destructor destroys the object.

Access :

Virtual, Public

Prototype:

virtual ~LSharedMemoryPool();

AddPoolUser()

Purpose:

Adds a user to the pool. Can NOT be called at interrupt time.

Access :

Public

Prototype:

void AddPoolUser( void*	inUser,

	UInt32	inPoolSize);
Parameters:

This method has the following parameters:

 

void*  
inUser  
The user pointer.  
UInt32  
inPoolSize  
This is the size of the pool.  

Return:

None

GetSharedPool()

Purpose:

Returns pointer to static shared memory pool. Creates pool if necessary.

Access :

Static, Public

Prototype:

static LSharedMemoryPool * GetSharedPool();
Parameters:

None

Return:

The pointer to the shared memory pool.

RemovePoolUser()

Purpose:

Removes a user from the pool.

Access :

Public

Prototype:

void RemovePoolUser(void*	inUser);
Parameters:

This method has the following parameters:

 

void*  
inUser  
The user pointer.  

Return:

None

sSharedMemoryPool

Purpose:

The shared memory poolk pointer.

Access :

Static, Private

Prototype:

LSharedMemoryPool *	sSharedMemoryPool;

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000