VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
VICI::cfi::ChildProcessMgr Class Reference

Manage the child processes. More...

#include <vici/proc.h>

Public Member Functions

void registerOwner (ProcessOwner *)
 register an object that is to be notified of a child's death
 
void registerChild (AbstractChildProcess *cp)
 tell the manager about a child More...
 
void deregisterChild (AbstractChildProcess *cp)
 forget about a child More...
 
int numberOfChildren () const
 get the number of child processes More...
 
int numberOfLiveChildren () const
 get the number of running children More...
 
void shutDown ()
 terminate all the child processes
 

Static Public Member Functions

static ChildProcessMgrinstance ()
 get reference to the child process manager
 

Detailed Description

Manage the child processes.

Manage the child processes at a global level which is mostly about handling the SIGCHLD signals and ensuring the correct ChildProcess gets notified.

Member Function Documentation

void ChildProcessMgr::deregisterChild ( AbstractChildProcess cp)

forget about a child

called by the ChildProcess as it destructs

Parameters
cpthe child process
int VICI::cfi::ChildProcessMgr::numberOfChildren ( ) const
inline

get the number of child processes

Returns
the number of child processes
int ChildProcessMgr::numberOfLiveChildren ( ) const

get the number of running children

Returns
the number of children still running
void ChildProcessMgr::registerChild ( AbstractChildProcess cp)

tell the manager about a child

called by the ChildProcess as it creates the process

Parameters
cpthe child process

The documentation for this class was generated from the following files: