#include <thread.h>
Inheritance diagram for PThread2Arg< Arg1Type, Arg2Type >:

Public Types | |
| typedef void(*) | FnType (Arg1Type arg1, Arg2Type arg2) |
Public Member Functions | |
| PThread2Arg (Arg1Type arg1, Arg2Type arg2, FnType function, bool autoDel=false) | |
| PThread2Arg (const char *file, int line, Arg1Type arg1, Arg2Type arg2, FnType function, bool autoDel=false) | |
| virtual void | Main () |
| User override function for the main execution routine of the thread. | |
Protected Attributes | |
| FnType | m_function |
| Arg1Type | m_arg1 |
| Arg2Type | m_arg2 |
| typedef void(*) PThread2Arg< Arg1Type, Arg2Type >::FnType(Arg1Type arg1, Arg2Type arg2) |
| PThread2Arg< Arg1Type, Arg2Type >::PThread2Arg | ( | Arg1Type | arg1, | |
| Arg2Type | arg2, | |||
| FnType | function, | |||
| bool | autoDel = false | |||
| ) | [inline] |
| PThread2Arg< Arg1Type, Arg2Type >::PThread2Arg | ( | const char * | file, | |
| int | line, | |||
| Arg1Type | arg1, | |||
| Arg2Type | arg2, | |||
| FnType | function, | |||
| bool | autoDel = false | |||
| ) | [inline] |
| virtual void PThread2Arg< 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.
Arg1Type PThread2Arg< Arg1Type, Arg2Type >::m_arg1 [protected] |
Arg2Type PThread2Arg< Arg1Type, Arg2Type >::m_arg2 [protected] |
FnType PThread2Arg< Arg1Type, Arg2Type >::m_function [protected] |
1.4.7