- async execute command

This commit is contained in:
2018-09-28 20:33:44 +03:00
parent 4da6c88f02
commit 96c2ed3d94
2 changed files with 38 additions and 1 deletions

View File

@@ -2,11 +2,16 @@
#define __HL_PROCESS_H
#include <string>
#include <functional>
class OsProcess
{
public:
static std::string execCommand(const std::string& cmdline);
static void asyncExecCommand(const std::string& cmdline,
std::function<void(const std::string& line)> callback,
bool& finish_flag);
};
#endif