LInterruptSafeList is a PowerPlant class that is used for....
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
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:
See also:
Purpose:
The constructor creates the object.
Access :
Prototype:
LInterruptSafeList();Parameters:
Purpose:
The destructor destroys the object.
Access :
Prototype:
virtual ~LInterruptSafeList();
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 :
Prototype:
virtual void Append(
LInterruptSafeListMember* inItem ); The parameter for this method is:
| The pointer to the list item. |
Return:
Purpose:
Returns true if there are no entries in this list.
Access :
Prototype:
virtual Boolean IsEmpty() const;Parameters:
Return:
Purpose:
Call to remove an item from a list.
This method may be called at interrupt time.
Access :
Prototype:
virtual Boolean Remove(
LInterruptSafeListMember* inItem); The parameter for this method is:
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).
Purpose:
Access :
Prototype:
QHdr mQueue;
Purpose:
Access :
Prototype:
QHdr mIteratorQueue;