Add OS::is_process_running function.

Adds the is_process_running function to the native OS class and exposes it to script.

This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function.

Documentation is updated to reflect new API function.
This commit is contained in:
mdavisprog 2021-08-12 20:36:23 -07:00
parent 1b2992799b
commit f3c1232c59
12 changed files with 56 additions and 0 deletions

View file

@ -173,6 +173,7 @@ public:
Error kill(int p_pid);
Error shell_open(String p_uri);
bool is_process_running(int p_pid) const;
int get_process_id() const;
bool has_environment(const String &p_var) const;