#include <thread.h>
Inheritance diagram for PThreadObj< ObjType >:

Public Types | |
| typedef void(ObjType::*) | ObjTypeFn () |
Public Member Functions | |
| PCLASSINFO (PThreadObj, PThread) | |
| PThreadObj (ObjType &_obj, ObjTypeFn _fn, PBoolean _autoDelete=PFalse) | |
| PThreadObj (const char *_file, int _line, ObjType &_obj, ObjTypeFn _fn, PBoolean _autoDelete=PFalse) | |
| void | Main () |
Protected Attributes | |
| ObjType & | obj |
| ObjTypeFn | fn |
| typedef void(ObjType::*) PThreadObj< ObjType >::ObjTypeFn() |
| PThreadObj< ObjType >::PThreadObj | ( | ObjType & | _obj, | |
| ObjTypeFn | _fn, | |||
| PBoolean | _autoDelete = PFalse | |||
| ) | [inline] |
| PThreadObj< ObjType >::PThreadObj | ( | const char * | _file, | |
| int | _line, | |||
| ObjType & | _obj, | |||
| ObjTypeFn | _fn, | |||
| PBoolean | _autoDelete = PFalse | |||
| ) | [inline] |
| PThreadObj< ObjType >::PCLASSINFO | ( | PThreadObj< ObjType > | , | |
| PThread | ||||
| ) |
| void PThreadObj< ObjType >::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.
ObjType& PThreadObj< ObjType >::obj [protected] |
ObjTypeFn PThreadObj< ObjType >::fn [protected] |
1.5.1