Main Page | Class Hierarchy | Class List | File List | Class Members

MessageFrameList Class Reference

#include <xmppbase.h>

Inheritance diagram for MessageFrameList:

Inheritance graph
[legend]
Collaboration diagram for MessageFrameList:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

void PurgeOldMessageFrameBody (PINDEX maxTime=2000)

Protected Attributes

PMutex mutex
PThread * garbageMessageFrame
PSyncPoint garbageMessageFrameExit
PString identifier

Detailed Description

A list of all MessageFrame classes, which have been created and are waiting for use. After use in one call, they are deleted.

This class provides a second purpose, to store MessageFrame structure that have been allocated and used in a previous call. In this class these old MessageFrame structures are deleted. We delete them here, rather than inside the MyOpalCall destructor, so that there is no possibility of holding up the MyOpalCall destructor

Access to this list is kept threadsafe by use of a mutex


Member Function Documentation

void MessageFrameList::PurgeOldMessageFrameBody PINDEX  maxTime = 2000  )  [protected]
 

The actual method used by the comms garbage collector to do the purging

Parameters:
maxTimeInterval  the time interval(ms) for too old


Member Data Documentation

PThread* MessageFrameList::garbageMessageFrame [protected]
 

The thread which will remove all the old MessageFrame structures

PSyncPoint MessageFrameList::garbageMessageFrameExit [protected]
 

The flag which we use to indicate to the garbage MessageFrame cleaner when it is time to exit

PString MessageFrameList::identifier [protected]
 

A user supplied string which provides additional information in the logs and thread name

PMutex MessageFrameList::mutex [protected]
 

Local variable which protects access.


The documentation for this class was generated from the following files:
Generated on Sun Jan 29 19:49:48 2006 for SSSound : Sofa Switch Sound by  doxygen 1.4.4