|
PTLib Version 2.10.2
|
#include <thread.h>
Public Types | |
| typedef void(ObjType::* | ObjTypeFn )(Arg1Type) |
Public Member Functions | |
| PThreadObj1Arg (ObjType &obj, Arg1Type arg1, ObjTypeFn function, bool autoDel=false, const char *name=NULL, PThread::Priority priority=PThread::NormalPriority) | |
| void | Main () |
| User override function for the main execution routine of the thread. | |
Protected Attributes | |
| ObjType & | m_object |
| ObjTypeFn | m_function |
| Arg1Type | m_arg1 |
| typedef void(ObjType::* PThreadObj1Arg< ObjType, Arg1Type >::ObjTypeFn)(Arg1Type) |
| PThreadObj1Arg< ObjType, Arg1Type >::PThreadObj1Arg | ( | ObjType & | obj, |
| Arg1Type | arg1, | ||
| ObjTypeFn | function, | ||
| bool | autoDel = false, |
||
| const char * | name = NULL, |
||
| PThread::Priority | priority = PThread::NormalPriority |
||
| ) | [inline] |
References PThread::Resume().
| void PThreadObj1Arg< ObjType, Arg1Type >::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 PThreadObj1Arg< ObjType, Arg1Type >::m_arg1, PThreadObj1Arg< ObjType, Arg1Type >::m_function, and PThreadObj1Arg< ObjType, Arg1Type >::m_object.
Arg1Type PThreadObj1Arg< ObjType, Arg1Type >::m_arg1 [protected] |
Referenced by PThreadObj1Arg< ObjType, Arg1Type >::Main().
ObjTypeFn PThreadObj1Arg< ObjType, Arg1Type >::m_function [protected] |
Referenced by PThreadObj1Arg< ObjType, Arg1Type >::Main().
ObjType& PThreadObj1Arg< ObjType, Arg1Type >::m_object [protected] |
Referenced by PThreadObj1Arg< ObjType, Arg1Type >::Main().