Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - OS - Exec - OSProcessBodyC
 

  PUBLIC
OSProcessBodyC::OSProcessBodyC(int)
OSProcessBodyC::Signal(IntT)
OSProcessBodyC::Kill(bool)
OSProcessBodyC::SigStop(void)
OSProcessBodyC::SigContinue(void)
OSProcessBodyC::Pid(void) const
OSProcessBodyC::Owner(void)
OSProcessBodyC::Hash(void) const
OSProcessBodyC::MemorySize(void)
OSProcessBodyC::ProcFile(void)
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   OSProcessBodyC   
 
OSProcess body.
 
include "Ravl/OS/OSProcess.hh"
Created:07/01/99 
Source file:Ravl/OS/Exec/OSProcess.hh
User Level:Develop
Library:RavlOS
In Scope:RavlN

Parent Classes: Derived Classes: Variables:
int pid;

Methods:
OSProcessBodyC(int npid = - 1)
Default constructor.

bool Signal(IntT signo)
Send a signal to the process.

bool Kill(bool hard = false)
Kill the child process.
If hard is FALSE, a SIGQUIT is sent.(This can be intercepted by the process) Otherwise a SIGKILL is sent.

bool SigStop()
Stop this process. (As Ctrl-z)

bool SigContinue()
Continue this process.
Restart the this process after a stop.

int Pid() const
Get process id.

UserInfoC Owner()
Find the owner of the process.

UIntT Hash() const
Hash on pid.

UIntT MemorySize()
Get the amount of memory this process is using.
Returns 0 if failed. 1 if special Will return ((UIntT) -1) if process size is bigger than 4Gb.

StringC ProcFile()
Generate filename for entry in /proc/

#include "Ravl/RefCounter.hh"
UIntT References() const
Access count of handles open to this object.

RCBodyC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

void IncRefCounter()
Increment reference counter.

bool DecRefCounter()
Decrement reference counter.


Maintainer:Charles Galambos, Created: 07/01/99, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002