|
blocxx
|
Portable process status. More...
#include <Process.hpp>
Classes | |
| struct | Repr |
Public Member Functions | |
| Status (ProcId wpid, int status) | |
| Status (int rep1, int rep2, Repr) | |
| Status () | |
| bool | running () const |
| bool | exitTerminated () const |
| int | exitStatus () const |
| bool | terminatedSuccessfully () const |
| bool | signalTerminated () const |
| bool | terminated () const |
| int | termSignal () const |
| bool | stopped () const |
| int | stopSignal () const |
| String | toString () const |
| Get a string representation of the status suitable for debugging or logging. More... | |
| int | getPOSIXwaitpidStatus () const |
| Get the result from waitpid() More... | |
| void | repr (int &rep1, int &rep2) const |
Private Attributes | |
| bool | m_status_available |
| int | m_status |
Portable process status.
Definition at line 152 of file Process.hpp.
| BLOCXX_NAMESPACE::Process::Status::Status | ( | ProcId | wpid, |
| int | status | ||
| ) |
running(), stopped() and terminated() is true.| wpid | return value from waitpid |
| status | status value assigned by waitpid. |
Definition at line 133 of file Process.cpp.
| BLOCXX_NAMESPACE::Process::Status::Status | ( | int | rep1, |
| int | rep2, | ||
| Repr | |||
| ) |
Definition at line 139 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status.
| BLOCXX_NAMESPACE::Process::Status::Status | ( | ) |
running() is true Definition at line 198 of file Process.cpp.
| int BLOCXX_NAMESPACE::Process::Status::exitStatus | ( | ) | const |
exitTerminated() exit() or returned from main(). Definition at line 217 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status.
| bool BLOCXX_NAMESPACE::Process::Status::exitTerminated | ( | ) | const |
Definition at line 212 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status.
| int BLOCXX_NAMESPACE::Process::Status::getPOSIXwaitpidStatus | ( | ) | const |
Get the result from waitpid()
Definition at line 222 of file Process.cpp.
| void BLOCXX_NAMESPACE::Process::Status::repr | ( | int & | rep1, |
| int & | rep2 | ||
| ) | const |
Definition at line 249 of file Process.cpp.
| bool BLOCXX_NAMESPACE::Process::Status::running | ( | ) | const |
Definition at line 202 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status.
| bool BLOCXX_NAMESPACE::Process::Status::signalTerminated | ( | ) | const |
Definition at line 227 of file Process.cpp.
| bool BLOCXX_NAMESPACE::Process::Status::stopped | ( | ) | const |
Definition at line 237 of file Process.cpp.
| int BLOCXX_NAMESPACE::Process::Status::stopSignal | ( | ) | const |
stopped() Definition at line 242 of file Process.cpp.
| bool BLOCXX_NAMESPACE::Process::Status::terminated | ( | ) | const |
Definition at line 207 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status.
Referenced by BLOCXX_NAMESPACE::Process::Process().
| bool BLOCXX_NAMESPACE::Process::Status::terminatedSuccessfully | ( | ) | const |
Definition at line 255 of file Process.cpp.
| int BLOCXX_NAMESPACE::Process::Status::termSignal | ( | ) | const |
signalTerminated() Definition at line 232 of file Process.cpp.
| String BLOCXX_NAMESPACE::Process::Status::toString | ( | ) | const |
Get a string representation of the status suitable for debugging or logging.
Definition at line 260 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::pid(), BLOCXX_NAMESPACE::pollStatusImpl(), BLOCXX_NAMESPACE::WaitpidThreadFix::shouldUseWaitpidThreadFix(), sig, and BLOCXX_NAMESPACE::WaitpidThreadFix::waitPid().
|
private |
Definition at line 229 of file Process.hpp.
|
private |
Definition at line 228 of file Process.hpp.
1.8.18