#include <thread.h>
Public Types | |
| typedef void(ObjType::* | ObjTypeFn )() |
Public Member Functions | |
| PCLASSINFO (PThreadObj, PThread) | |
| PThreadObj (ObjType &obj, ObjTypeFn function, bool autoDelete=false) | |
| PThreadObj (const char *file, int line, ObjType &obj, ObjTypeFn function, bool autoDelete=false) | |
| void | Main () |
Protected Attributes | |
| ObjType & | m_object |
| ObjTypeFn | m_function |
| typedef void(ObjType::* PThreadObj< ObjType >::ObjTypeFn)() |
| PThreadObj< ObjType >::PThreadObj | ( | ObjType & | obj, | |
| ObjTypeFn | function, | |||
| bool | autoDelete = false | |||
| ) | [inline] |
References PThread::Resume().
| PThreadObj< ObjType >::PThreadObj | ( | const char * | file, | |
| int | line, | |||
| ObjType & | obj, | |||
| ObjTypeFn | function, | |||
| bool | autoDelete = false | |||
| ) | [inline] |
References PThread::Resume().
| 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.
References PThreadObj< ObjType >::m_function, and PThreadObj< ObjType >::m_object.
| PThreadObj< ObjType >::PCLASSINFO | ( | PThreadObj< ObjType > | , | |
| PThread | ||||
| ) |
ObjTypeFn PThreadObj< ObjType >::m_function [protected] |
Referenced by PThreadObj< ObjType >::Main().
ObjType& PThreadObj< ObjType >::m_object [protected] |
Referenced by PThreadObj< ObjType >::Main().
1.6.3