PThreadObj1Arg< ObjType, Arg1Type > Class Template Reference

#include <thread.h>

Inheritance diagram for PThreadObj1Arg< ObjType, Arg1Type >:

PThread PObject

List of all members.

Public Types

typedef void(ObjType::* ObjTypeFn )(Arg1Type)

Public Member Functions

 PThreadObj1Arg (ObjType &obj, Arg1Type arg1, ObjTypeFn function, bool autoDelete=false)
 PThreadObj1Arg (const char *file, int line, ObjType &obj, Arg1Type arg1, ObjTypeFn function, bool autoDelete=false)
void Main ()

Protected Attributes

ObjType & m_object
ObjTypeFn m_function
Arg1Type m_arg1

template<class ObjType, typename Arg1Type>
class PThreadObj1Arg< ObjType, Arg1Type >


Member Typedef Documentation

template<class ObjType , typename Arg1Type >
typedef void(ObjType::* PThreadObj1Arg< ObjType, Arg1Type >::ObjTypeFn)(Arg1Type)


Constructor & Destructor Documentation

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

References PThread::Resume().

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

References PThread::Resume().


Member Function Documentation

template<class ObjType , typename Arg1Type >
void PThreadObj1Arg< ObjType, Arg1Type >::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 PThreadObj1Arg< ObjType, Arg1Type >::m_arg1, PThreadObj1Arg< ObjType, Arg1Type >::m_function, and PThreadObj1Arg< ObjType, Arg1Type >::m_object.


Member Data Documentation

template<class ObjType , typename Arg1Type >
Arg1Type PThreadObj1Arg< ObjType, Arg1Type >::m_arg1 [protected]

template<class ObjType , typename Arg1Type >
ObjTypeFn PThreadObj1Arg< ObjType, Arg1Type >::m_function [protected]

template<class ObjType , typename Arg1Type >
ObjType& PThreadObj1Arg< ObjType, Arg1Type >::m_object [protected]


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

Generated on Fri Apr 10 22:33:53 2009 for PTLib by  doxygen 1.5.8