- fixes for process output reading
This commit is contained in:
@@ -3,12 +3,14 @@
|
||||
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <thread>
|
||||
|
||||
class OsProcess
|
||||
{
|
||||
public:
|
||||
static std::string execCommand(const std::string& cmdline);
|
||||
static void asyncExecCommand(const std::string& cmdline,
|
||||
static std::shared_ptr<std::thread> asyncExecCommand(const std::string& cmdline,
|
||||
std::function<void(const std::string& line)> callback,
|
||||
bool& finish_flag);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user