ΒΆllvm::sys::ProcessInfo Wait(
    const llvm::sys::ProcessInfo& PI,
    unsigned int SecondsToWait,
    bool WaitUntilTerminates,
    std::string* ErrMsg = nullptr,
    Optional<llvm::sys::ProcessStatistics>*
        ProcStat = nullptr)

Description

This function waits for the process specified by \p PI to finish.

Declared at: llvm/include/llvm/Support/Program.h:207

Parameters

const llvm::sys::ProcessInfo& PI
unsigned int SecondsToWait
bool WaitUntilTerminates
std::string* ErrMsg = nullptr
Optional<llvm::sys::ProcessStatistics>* ProcStat = nullptr

Returns

A