#include <ptlib/mutex.h>
#include <ptlib/syncpoint.h>
#include <ptlib/thread.h>
#include <ptlib/pfactory.h>
#include "unix/ptlib/pprocess.h"
Go to the source code of this file.
#define PCREATE_PROCESS |
( |
|
cls | ) |
|
Value:int main(int argc, char * argv[]) \
{ \
cls *pInstance = new cls(); \
pInstance->PreInitialise(argc, argv); \
int terminationValue = pInstance->InternalMain(); \
delete pInstance; \
return terminationValue; \
}
Create a process.
This macro is used to create the components necessary for a user PWLib process. For a PWLib program to work correctly on all platforms the main() function must be defined in the same module as the instance of the application.
#define PDECLARE_PROCESS |
( |
|
cls, |
|
|
|
ancestor, |
|
|
|
manuf, |
|
|
|
name, |
|
|
|
major, |
|
|
|
minor, |
|
|
|
status, |
|
|
|
build |
|
) |
| |
Value:class cls :
public ancestor {
\
public: \
cls() : ancestor(manuf, name, major, minor, status, build) { } \
private: \
virtual void Main(); \
};
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:2164