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

Public Types | |
| typedef void(*) | FnType () |
Public Member Functions | |
| PThreadMain (FnType _fn, BOOL autoDelete=FALSE) | |
| PThreadMain (const char *_file, int _line, FnType _fn, BOOL autoDelete=FALSE) | |
| virtual void | Main () |
Public Attributes | |
| FnType | fn |
| typedef void(*) PThreadMain::FnType() |
| PThreadMain::PThreadMain | ( | FnType | _fn, | |
| BOOL | autoDelete = FALSE | |||
| ) | [inline] |
| PThreadMain::PThreadMain | ( | const char * | _file, | |
| int | _line, | |||
| FnType | _fn, | |||
| BOOL | autoDelete = FALSE | |||
| ) | [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