PTLib  Version 2.10.4
PThread2Arg< Arg1Type, Arg2Type > Class Template Reference

#include <thread.h>

Inheritance diagram for PThread2Arg< Arg1Type, Arg2Type >:
PThread PObject

List of all members.

Public Types

typedef void(* FnType )(Arg1Type arg1, Arg2Type arg2)

Public Member Functions

 PThread2Arg (Arg1Type arg1, Arg2Type arg2, FnType function, bool autoDel=false)
 PThread2Arg (const char *file, int line, Arg1Type arg1, Arg2Type arg2, 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
Arg2Type m_arg2

template<typename Arg1Type, typename Arg2Type>
class PThread2Arg< Arg1Type, Arg2Type >


Member Typedef Documentation

template<typename Arg1Type , typename Arg2Type >
typedef void(* PThread2Arg< Arg1Type, Arg2Type >::FnType)(Arg1Type arg1, Arg2Type arg2)

Constructor & Destructor Documentation

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

References PThread::Resume().

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

References PThread::Resume().


Member Function Documentation

template<typename Arg1Type , typename Arg2Type >
virtual void PThread2Arg< Arg1Type, Arg2Type >::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 PThread2Arg< Arg1Type, Arg2Type >::m_arg1, and PThread2Arg< Arg1Type, Arg2Type >::m_arg2.


Member Data Documentation

template<typename Arg1Type , typename Arg2Type >
Arg1Type PThread2Arg< Arg1Type, Arg2Type >::m_arg1 [protected]
template<typename Arg1Type , typename Arg2Type >
Arg2Type PThread2Arg< Arg1Type, Arg2Type >::m_arg2 [protected]
template<typename Arg1Type , typename Arg2Type >
FnType PThread2Arg< Arg1Type, Arg2Type >::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