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 _fn, BOOL autoDelete=FALSE)
void Main ()

Protected Attributes

ObjType & obj
ObjTypeFn fn

template<class ObjType>
class PThreadObj< ObjType >


Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class ObjType >
PThreadObj< ObjType >::PThreadObj ( ObjType &  _obj,
ObjTypeFn  _fn,
BOOL  autoDelete = FALSE 
) [inline]

References PThread::Resume().


Member Function Documentation

template<class 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 >::fn, and PThreadObj< ObjType >::obj.

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

Member Data Documentation

template<class ObjType >
ObjTypeFn PThreadObj< ObjType >::fn [protected]
template<class ObjType >
ObjType& PThreadObj< ObjType >::obj [protected]

The documentation for this class was generated from the following file:

Generated on Sun Sep 6 03:50:38 2009 for PWLib by  doxygen 1.6.1