Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
process_windows.cc File Reference
#include <windows.h>
#include <chrono>
#include <string>
#include <vector>
#include "auto_tuning/process_platform.h"
Include dependency graph for process_windows.cc:

Namespaces

namespace  mm
 
namespace  mm::auto_tuning
 
namespace  mm::auto_tuning::detail
 

Functions

std::expected< Child, std::string > mm::auto_tuning::detail::spawnChild (const std::filesystem::path &binary, const std::vector< std::string > &args, const std::filesystem::path &logFile)
 Runs binary with args, with its output appended to logFile.
 
bool mm::auto_tuning::detail::childAlive (const Child &child)
 Whether child is still running.
 
bool mm::auto_tuning::detail::terminateChild (const Child &child, std::chrono::milliseconds grace)
 Asks child to exit, waits up to grace, then kills it and everything it started.