diff options
author | mdavisprog <mdavisprog@gmail.com> | 2021-08-12 20:36:23 -0700 |
---|---|---|
committer | mdavisprog <mdavisprog@gmail.com> | 2022-05-03 17:27:17 -0700 |
commit | f3c1232c5984a540c33841694469febbe951e7a8 (patch) | |
tree | 216cf28e0079c5e34abaac465424c7d373ffe8a5 /core/os | |
parent | 1b2992799b324479b3fba9e05ae6226a46cb4143 (diff) |
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.
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/os.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/os/os.h b/core/os/os.h index a7cf3f1679..5eac77d634 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -152,6 +152,7 @@ public: virtual Error create_instance(const List<String> &p_arguments, ProcessID *r_child_id = nullptr) { return create_process(get_executable_path(), p_arguments, r_child_id); }; virtual Error kill(const ProcessID &p_pid) = 0; virtual int get_process_id() const; + virtual bool is_process_running(const ProcessID &p_pid) const = 0; virtual void vibrate_handheld(int p_duration_ms = 500); virtual Error shell_open(String p_uri); |