#include <thread.h>
Inheritance diagram for PThreadMain:

| 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 | 
| typedef void(*) PThreadMain::FnType() | 
| PThreadMain::PThreadMain | ( | const char * | _file, | |
| int | _line, | |||
| FnType | _fn, | |||
| PBoolean | _autoDelete = PFalse | |||
| ) |  [inline] | 
| 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.
 1.5.1
 1.5.1