|
VICI
0.11.815
Visual Chart Interpreter
|
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 ChildProcessMgr & | instance () |
| get reference to the child process manager | |
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.
| void ChildProcessMgr::deregisterChild | ( | AbstractChildProcess * | cp | ) |
|
inline |
get the number of child processes
| int ChildProcessMgr::numberOfLiveChildren | ( | ) | const |
get the number of running children
| void ChildProcessMgr::registerChild | ( | AbstractChildProcess * | cp | ) |
tell the manager about a child
called by the ChildProcess as it creates the process
| cp | the child process |
1.8.5