#include <ProcessGroup.h>
Definition at line 27 of file ProcessGroup.h.
◆ ProcessGroup()
AthenaInterprocess::ProcessGroup::ProcessGroup |
( |
int |
nprocs = -1 | ) |
|
|
explicit |
◆ ~ProcessGroup()
AthenaInterprocess::ProcessGroup::~ProcessGroup |
( |
| ) |
|
|
virtual |
◆ ATLAS_NOT_THREAD_SAFE() [1/4]
pid_t launchProcess AthenaInterprocess::ProcessGroup::ATLAS_NOT_THREAD_SAFE |
( |
| ) |
|
◆ ATLAS_NOT_THREAD_SAFE() [2/4]
bool create AthenaInterprocess::ProcessGroup::ATLAS_NOT_THREAD_SAFE |
( |
| ) |
|
|
private |
◆ ATLAS_NOT_THREAD_SAFE() [3/4]
◆ ATLAS_NOT_THREAD_SAFE() [4/4]
int wait AthenaInterprocess::ProcessGroup::ATLAS_NOT_THREAD_SAFE |
( |
int |
options = 0 | ) |
|
◆ getChildren()
const std::vector< Process > & AthenaInterprocess::ProcessGroup::getChildren |
( |
| ) |
const |
◆ getGroupID()
pid_t AthenaInterprocess::ProcessGroup::getGroupID |
( |
| ) |
const |
◆ getStatuses()
const std::vector< ProcessStatus > & AthenaInterprocess::ProcessGroup::getStatuses |
( |
| ) |
const |
◆ pullOneResult()
ProcessResult * AthenaInterprocess::ProcessGroup::pullOneResult |
( |
| ) |
|
◆ wait_once()
pid_t AthenaInterprocess::ProcessGroup::wait_once |
( |
bool & |
flag | ) |
|
Definition at line 149 of file ProcessGroup.cxx.
153 int child_status = 0;
154 pid_t child = waitpid(-
m_pgid, &child_status,WNOHANG);
157 flag = !(WIFSIGNALED(child_status) || WEXITSTATUS(child_status));
159 child_status = WIFSIGNALED(child_status) ? WTERMSIG(child_status) : WEXITSTATUS(child_status);
160 ProcessStatus
p = {child, child_status};
165 if(iproc->getProcessID()==child) {
◆ m_inbox
◆ m_nprocs
int AthenaInterprocess::ProcessGroup::m_nprocs |
|
private |
◆ m_pgid
pid_t AthenaInterprocess::ProcessGroup::m_pgid |
|
private |
◆ m_processes
std::vector<Process> AthenaInterprocess::ProcessGroup::m_processes |
|
private |
◆ m_processesCreated
int AthenaInterprocess::ProcessGroup::m_processesCreated |
|
private |
◆ m_statuses
std::vector<ProcessStatus> AthenaInterprocess::ProcessGroup::m_statuses |
|
private |
The documentation for this class was generated from the following files: