Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
child_process.hpp
Go to the documentation of this file.
1#pragma once
2
3// Runtime convenience wrapper for child processes.
4
6#include <string>
7#include <string_view>
8#include <vector>
9#include <optional>
10
11namespace pulp::runtime {
12
14
17std::optional<ProcessResult> run_process(
18 std::string_view executable,
19 const std::vector<std::string>& args = {},
20 std::string_view working_dir = "",
21 int timeout_ms = 0 // 0 = no timeout
22);
23
24} // namespace pulp::runtime
Definition generated_event_source.hpp:33
std::optional< ProcessResult > run_process(std::string_view executable, const std::vector< std::string > &args={}, std::string_view working_dir="", int timeout_ms=0)
Launch a child process and wait for it to complete.
pulp::platform::ProcessResult ProcessResult
Definition child_process.hpp:13
Result of a completed child process.
Definition child_process.hpp:18