#include <thread.h>
Inheritance diagram for PThreadObj2Arg< ObjType, Arg1Type, Arg2Type >:
Public Types | |
typedef void(ObjType::*) | ObjTypeFn (Arg1Type, Arg2Type) |
Public Member Functions | |
PThreadObj2Arg (ObjType &_obj, Arg1Type _arg1, Arg2Type _arg2, ObjTypeFn _fn, PBoolean _autoDelete=PFalse) | |
PThreadObj2Arg (const char *_file, int _line, ObjType &_obj, Arg1Type _arg1, Arg2Type _arg2, ObjTypeFn _fn, PBoolean _autoDelete=PFalse) | |
void | Main () |
Protected Attributes | |
ObjType & | obj |
ObjTypeFn | fn |
Arg1Type | arg1 |
Arg1Type | arg2 |
typedef void(ObjType::*) PThreadObj2Arg< ObjType, Arg1Type, Arg2Type >::ObjTypeFn(Arg1Type, Arg2Type) |
PThreadObj2Arg< ObjType, Arg1Type, Arg2Type >::PThreadObj2Arg | ( | ObjType & | _obj, | |
Arg1Type | _arg1, | |||
Arg2Type | _arg2, | |||
ObjTypeFn | _fn, | |||
PBoolean | _autoDelete = PFalse | |||
) | [inline] |
PThreadObj2Arg< ObjType, Arg1Type, Arg2Type >::PThreadObj2Arg | ( | const char * | _file, | |
int | _line, | |||
ObjType & | _obj, | |||
Arg1Type | _arg1, | |||
Arg2Type | _arg2, | |||
ObjTypeFn | _fn, | |||
PBoolean | _autoDelete = PFalse | |||
) | [inline] |
void PThreadObj2Arg< ObjType, Arg1Type, Arg2Type >::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& PThreadObj2Arg< ObjType, Arg1Type, Arg2Type >::obj [protected] |
ObjTypeFn PThreadObj2Arg< ObjType, Arg1Type, Arg2Type >::fn [protected] |
Arg1Type PThreadObj2Arg< ObjType, Arg1Type, Arg2Type >::arg1 [protected] |
Arg1Type PThreadObj2Arg< ObjType, Arg1Type, Arg2Type >::arg2 [protected] |