|
PTLib Version 2.10.2
|
Define some templates to simplify the declaration of simple PThread descendants with one or two paramaters.
More...
#include <thread.h>
Public Types | |
| typedef void(* | FnType )() |
Public Member Functions | |
| PThreadMain (FnType function, bool autoDel=false) | |
| PThreadMain (const char *file, int line, FnType function, bool autoDel=false) | |
| virtual void | Main () |
| User override function for the main execution routine of the thread. | |
Protected Attributes | |
| FnType | m_function |
Define some templates to simplify the declaration of simple PThread descendants with one or two paramaters.
| typedef void(* PThreadMain::FnType)() |
| PThreadMain::PThreadMain | ( | FnType | function, |
| bool | autoDel = false |
||
| ) | [inline] |
References PThread::Resume().
| PThreadMain::PThreadMain | ( | const char * | file, |
| int | line, | ||
| FnType | function, | ||
| bool | autoDel = false |
||
| ) | [inline] |
References PThread::Resume().
| virtual void PThreadMain::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.
FnType PThreadMain::m_function [protected] |