1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Make OS.execute() blocking by default if not specified

This makes `OS.execute()` calls quicker to set up when calling programs
in a blocking fashion.
This commit is contained in:
Hugo Locurcio
2020-01-23 01:25:47 +01:00
parent 94d3bcbc9b
commit 90a1f8d8a7
8 changed files with 8 additions and 8 deletions

View File

@@ -141,7 +141,7 @@ public:
void run_async();
bool main_loop_iterate();
virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL, bool read_stderr = false, Mutex *p_pipe_mutex = NULL);
virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking = true, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL, bool read_stderr = false, Mutex *p_pipe_mutex = NULL);
virtual Error kill(const ProcessID &p_pid);
virtual int get_process_id() const;