pprocess.h File Reference

#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.

Classes

class  PTimerList
class  PProcess
class  PProcessStartup
class  PTraceLevelSetStartup< _level, _options >

Defines

#define PCREATE_PROCESS(cls)
#define PDECLARE_PROCESS(cls, ancestor, manuf, name, major, minor, status, build)
#define P_DEFAULT_TRACE_OPTIONS   ( PTrace::Blocks | PTrace::Timestamp | PTrace::Thread | PTrace::FileAndLine )

Typedefs

typedef PFactory< PProcessStartupPProcessStartupFactory

Functions

 PLIST (PInternalTimerList, PTimer)


Define Documentation

#define P_DEFAULT_TRACE_OPTIONS   ( PTrace::Blocks | PTrace::Timestamp | PTrace::Thread | PTrace::FileAndLine )

#define PCREATE_PROCESS ( cls   ) 

Value:

int main(int argc, char ** argv, char ** envp) \
    { PProcess::PreInitialise(argc, argv, envp); \
      cls *pInstance = new cls(); \
      int terminationValue = pInstance->_main(); \
      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 { \
    PCLASSINFO(cls, ancestor); \
    public: \
      cls() : ancestor(manuf, name, major, minor, status, build) { } \
    private: \
      virtual void Main(); \
  };


Typedef Documentation

typedef PFactory<PProcessStartup> PProcessStartupFactory


Function Documentation

PLIST ( PInternalTimerList  ,
PTimer   
)


Generated on Fri Mar 7 06:25:03 2008 for PTLib by  doxygen 1.5.1