Turi Create
4.0
|
Cross platform (Windows, Mac, Linux) sub-process management. More...
Classes | |
class | turi::process |
Functions | |
size_t | turi::get_parent_pid () |
void | turi::wait_for_parent_exit (size_t parent_pid) |
bool | turi::is_process_running (size_t pid) |
boost::optional< std::string > | turi::getenv_str (const char *variable_name) |
Cross platform (Windows, Mac, Linux) sub-process management.
size_t turi::get_parent_pid | ( | ) |
Get the PID of my parent process.
boost::optional<std::string> turi::getenv_str | ( | const char * | variable_name | ) |
Returns the environment variable's value; Note: on windows, the length of the return value is limited to 65534.
bool turi::is_process_running | ( | size_t | pid | ) |
Returns true if process is running
void turi::wait_for_parent_exit | ( | size_t | parent_pid | ) |
Waits for a pid to exit. (The function is misnamed. This will work for all PIDs not just my parent)