PThreadMain Class Reference

#include <thread.h>

Inheritance diagram for PThreadMain:

PThread PObject List of all members.

Public Types

typedef void(*) FnType ()

Public Member Functions

 PThreadMain (FnType _fn, PBoolean _autoDelete=PFalse)
 PThreadMain (const char *_file, int _line, FnType _fn, PBoolean _autoDelete=PFalse)
virtual void Main ()

Public Attributes

FnType fn

Detailed Description

Define some templates to simplify the declaration of simple PThread descendants with one or two paramaters


Member Typedef Documentation

typedef void(*) PThreadMain::FnType()


Constructor & Destructor Documentation

PThreadMain::PThreadMain ( FnType  _fn,
PBoolean  _autoDelete = PFalse 
) [inline]

PThreadMain::PThreadMain ( const char *  _file,
int  _line,
FnType  _fn,
PBoolean  _autoDelete = PFalse 
) [inline]


Member Function Documentation

virtual void PThreadMain::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.


Member Data Documentation

FnType PThreadMain::fn


The documentation for this class was generated from the following file:
Generated on Mon Sep 15 01:21:39 2008 for PTLib by  doxygen 1.5.1