blocxx
|
Functions | |
BLOCXX_COMMON_API bool | setWaitpidThreadFixEnabled (bool enabled) |
If a program is single threaded (like the monitor code is), then this function can be called to ensure that the fork/waitpid threading fix is or is not used (on the few platforms that its actually needed for). | |
BLOCXX_COMMON_API bool | shouldUseWaitpidThreadFix () |
BLOCXX_COMMON_API ProcessRef | spawnProcess (char const *exec_path, char const *const argv[], char const *const envp[], Exec::PreExec &pre_exec) |
BLOCXX_COMMON_API Process::Status | waitPid (const ProcId &pid) |
bool BLOCXX_NAMESPACE::WaitpidThreadFix::setWaitpidThreadFixEnabled | ( | bool | enabled | ) |
If a program is single threaded (like the monitor code is), then this function can be called to ensure that the fork/waitpid threading fix is or is not used (on the few platforms that its actually needed for).
Definition at line 75 of file WaitpidThreadFix.cpp.
bool BLOCXX_NAMESPACE::WaitpidThreadFix::shouldUseWaitpidThreadFix | ( | ) |
Definition at line 82 of file WaitpidThreadFix.cpp.
References BLOCXX_NAMESPACE::ThreadImpl::currentThread(), and BLOCXX_NAMESPACE::ThreadImpl::sameThreads().
ProcessRef BLOCXX_NAMESPACE::WaitpidThreadFix::spawnProcess | ( | char const * | exec_path, |
char const *const | argv[], | ||
char const *const | envp[], | ||
Exec::PreExec & | pre_exec | ||
) |
Definition at line 401 of file WaitpidThreadFix.cpp.
References BLOCXX_NAMESPACE::callOnce().
Referenced by BLOCXX_NAMESPACE::Exec::spawn().
Process::Status BLOCXX_NAMESPACE::WaitpidThreadFix::waitPid | ( | const ProcId & | pid | ) |
Definition at line 408 of file WaitpidThreadFix.cpp.
References BLOCXX_NAMESPACE::callOnce().