PThreadObj< ObjType > Class Template Reference

#include <thread.h>

Inheritance diagram for PThreadObj< ObjType >:
PThread PObject

List of all members.

Public Types

typedef void(ObjType::* ObjTypeFn )()

Public Member Functions

 PCLASSINFO (PThreadObj, PThread)
 PThreadObj (ObjType &obj, ObjTypeFn function, bool autoDelete=false)
 PThreadObj (const char *file, int line, ObjType &obj, ObjTypeFn function, bool autoDelete=false)
void Main ()

Protected Attributes

ObjType & m_object
ObjTypeFn m_function

template<typename ObjType>
class PThreadObj< ObjType >


Member Typedef Documentation

template<typename ObjType >
typedef void(ObjType::* PThreadObj< ObjType >::ObjTypeFn)()

Constructor & Destructor Documentation

template<typename ObjType >
PThreadObj< ObjType >::PThreadObj ( ObjType &  obj,
ObjTypeFn  function,
bool  autoDelete = false 
) [inline]

References PThread::Resume().

template<typename ObjType >
PThreadObj< ObjType >::PThreadObj ( const char *  file,
int  line,
ObjType &  obj,
ObjTypeFn  function,
bool  autoDelete = false 
) [inline]

References PThread::Resume().


Member Function Documentation

template<typename ObjType >
void PThreadObj< ObjType >::Main (  )  [inline, virtual]

User override function for the main execution routine of the thread. A descendent class must provide the code that will be executed in the thread within this function.

Note that the correct way for a thread to terminate is to return from this function.

Implements PThread.

References PThreadObj< ObjType >::m_function, and PThreadObj< ObjType >::m_object.

template<typename ObjType >
PThreadObj< ObjType >::PCLASSINFO ( PThreadObj< ObjType >  ,
PThread   
)

Member Data Documentation

template<typename ObjType >
ObjTypeFn PThreadObj< ObjType >::m_function [protected]
template<typename ObjType >
ObjType& PThreadObj< ObjType >::m_object [protected]

The documentation for this class was generated from the following file:
Generated on Fri May 28 07:32:36 2010 for PTLib by  doxygen 1.6.3