PTLib  Version 2.10.4
PThread1Arg< Arg1Type > Class Template Reference

#include <thread.h>

Inheritance diagram for PThread1Arg< Arg1Type >:
PThread PObject

List of all members.

Public Types

typedef void(* FnType )(Arg1Type arg1)

Public Member Functions

 PThread1Arg (Arg1Type arg1, FnType function, bool autoDel=false)
 PThread1Arg (const char *file, int line, Arg1Type arg1, FnType function, bool autoDel=false)
virtual void Main ()
 User override function for the main execution routine of the thread.

Protected Attributes

FnType m_function
Arg1Type m_arg1

template<typename Arg1Type>
class PThread1Arg< Arg1Type >


Member Typedef Documentation

template<typename Arg1Type >
typedef void(* PThread1Arg< Arg1Type >::FnType)(Arg1Type arg1)

Constructor & Destructor Documentation

template<typename Arg1Type >
PThread1Arg< Arg1Type >::PThread1Arg ( Arg1Type  arg1,
FnType  function,
bool  autoDel = false 
) [inline]

References PThread::Resume().

template<typename Arg1Type >
PThread1Arg< Arg1Type >::PThread1Arg ( const char *  file,
int  line,
Arg1Type  arg1,
FnType  function,
bool  autoDel = false 
) [inline]

References PThread::Resume().


Member Function Documentation

template<typename Arg1Type >
virtual void PThread1Arg< 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 PThread1Arg< Arg1Type >::m_arg1.


Member Data Documentation

template<typename Arg1Type >
Arg1Type PThread1Arg< Arg1Type >::m_arg1 [protected]
template<typename Arg1Type >
FnType PThread1Arg< Arg1Type >::m_function [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines