CTPThreadPool Class Reference

This class implements a pool of thread to be used by the CTP. More...

#include <CTPThreadPool.h>

List of all members.

Public Member Functions

 CTPThreadPool ()
 Constructor.
CmdTimeoutThread * createCmdTimeoutThread ()
 Creates a new timeout thread.
HeartbeatThread * createHeartbeatThread ()
 Creates a new heartbeat thread.
ReceiverThread * createReceiverThread ()
 Creates a new receiver thread.
void cleanup ()
 Cleanup any thread object that has terminated its execution.


Detailed Description

This class implements a pool of thread to be used by the CTP.

The purpose is not reusing existing threads, but rather to ensure that thread objects are properly release when no longer running. This class is a very simple form of garbage collection for CTP threads. The cleanup is not performed automatically but must be explicitelly invoked. Since CTP has periodic activity this is not a problem in this context.


The documentation for this class was generated from the following file:
Generated on Fri Jul 25 15:04:19 2008 for Funambol C++ Client Library by  doxygen 1.5.1