|
blocxx
|
Abstract interface for abstracting details of dealing with a process. More...
#include <Process.hpp>
Public Member Functions | |
| virtual | ~ProcessImpl () |
| virtual int | kill (ProcId pid, int sig)=0 |
| Sends signal sig to process pid. More... | |
| virtual Process::Status | pollStatus (ProcId pid)=0 |
Additional Inherited Members | |
Protected Member Functions inherited from BLOCXX_NAMESPACE::IntrusiveCountableBase | |
| IntrusiveCountableBase () | |
| IntrusiveCountableBase (const IntrusiveCountableBase &) | |
| IntrusiveCountableBase & | operator= (const IntrusiveCountableBase &) |
| virtual | ~IntrusiveCountableBase () |
Abstract interface for abstracting details of dealing with a process.
Definition at line 296 of file Process.hpp.
|
virtual |
Definition at line 255 of file Process.cpp.
References BLOCXX_LAZY_GLOBAL_INIT, BLOCXX_LOG_DEBUG, BLOCXX_NAMESPACE::FileSystem::COMPONENT_NAME, BLOCXX_NAMESPACE::ThreadPool::DYNAMIC_SIZE, BLOCXX_NAMESPACE::Process::m_impl, BLOCXX_NAMESPACE::Process::m_pid, pollStatus(), BLOCXX_NAMESPACE::pollStatusImpl(), BLOCXX_NAMESPACE::Timeout::relative(), BLOCXX_NAMESPACE::WaitpidThreadFix::shouldUseWaitpidThreadFix(), sig, BLOCXX_NAMESPACE::Thread::sleep(), BLOCXX_NAMESPACE::Process::Status::terminated(), BLOCXX_NAMESPACE::Process::Status::toString(), and BLOCXX_NAMESPACE::WaitpidThreadFix::waitPid().
|
pure virtual |
Sends signal sig to process pid.
If pid is less than -1, then sig is sent to every process in the process group -pid.
errno on failure. Referenced by BLOCXX_NAMESPACE::Process::killWait().
|
pure virtual |
!s.terminated()</t> for the return value s of any previous call to pollStatus for . | ProcessErrorException | on error. |
Referenced by BLOCXX_NAMESPACE::Process::processStatus(), BLOCXX_NAMESPACE::Process::terminatesWithin(), and ~ProcessImpl().
1.8.13