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

 

LInterruptSafeList



Overview:

LInterruptSafeList is a PowerPlant class that is used for....

Methods :

The methods in this class are:

 

LInterruptSafeList()  
~LInterruptSafeList()  
Append()  
IsEmpty()  
Remove()  
 

Data Members:

The data members in this class are:

 

mQueue  
mIteratorQueue  

Operation:

This class implements a container class which can add and remove members at interrupt time. The current implementation uses the Mac OS Toolbox calls Enqueue() and Dequeue(), but this may change at a later time.

Source files:

(Networking Classes)

LInterruptSafeList.h

LInterruptSafeList.cp

See also:

LDNSOperationDeleteQueue

LNetMessageQueue

LTCPParamBlockDeleteQueue

LUDPParamBlockDeleteQueue

LInterruptSafeList()

Purpose:

The constructor creates the object.

Access :

Public

Prototype:

LInterruptSafeList();
Parameters:

None

~LInterruptSafeList()

Purpose:

The destructor destroys the object.

Access :

Virtual, Public

Prototype:

virtual ~LInterruptSafeList();

Append()

Purpose:

Call to add an item to the end of a list. Note that there is currently no way to insert an item at any other position in a list.

This method may be called at interrupt time.

Access :

Virtual, Public

Prototype:

virtual void Append( 
   LInterruptSafeListMember* inItem );
Parameters:

The parameter for this method is:

 

LInterruptSafeListMember*  
inItem  
The pointer to the list item.

Return:

None

IsEmpty()

Purpose:

Returns true if there are no entries in this list.

Access :

Virtual, Public

Prototype:

virtual Boolean IsEmpty() const;
Parameters:

None

Return:

Return true if list is empty.

Remove()

Purpose:

Call to remove an item from a list.

This method may be called at interrupt time.

Access :

Virtual, Public

Prototype:

virtual Boolean Remove( 
   LInterruptSafeListMember* inItem);
Parameters:

The parameter for this method is:

 

LInterruptSafeListMember*  
inItem  
The pointer to the list item.  

Return:

Returns false if unable to remove the item from the list (i.e. it was not a member of the list, or another thread of execution removed the item first).

mQueue

Purpose:

The queue head.

Access :

Private

Prototype:

QHdr mQueue;

mIteratorQueue

Purpose:

An iterator for the queue.

Access :

Private

Prototype:

QHdr mIteratorQueue;

 


[ 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