summaryrefslogtreecommitdiffstats
path: root/core/core_bind.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-10-06 21:20:33 +0200
committerGitHub <noreply@github.com>2021-10-06 21:20:33 +0200
commit26f4848d013c5a234c2399717372ef72985cb655 (patch)
treea0af837922e0940b7639b9d6d2c25ac1da8ffcb2 /core/core_bind.h
parent164dc11e04b9cb5d0758dc310c624340355f32a3 (diff)
parentf28c677f3dacf0077cf2ace0f0dff9c991d1dd2d (diff)
downloadredot-engine-26f4848d013c5a234c2399717372ef72985cb655.tar.gz
Merge pull request #53455 from briansemrau/thread-is-executing
[core_bind] Add `Thread::is_alive`. Replace `is_active` with `is_started` to align with core/os/Thread API.
Diffstat (limited to 'core/core_bind.h')
-rw-r--r--core/core_bind.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/core_bind.h b/core/core_bind.h
index 84a284f948..4eab085dda 100644
--- a/core/core_bind.h
+++ b/core/core_bind.h
@@ -538,7 +538,7 @@ class Thread : public RefCounted {
protected:
Variant ret;
Variant userdata;
- SafeFlag active;
+ SafeFlag running;
Callable target_callable;
::Thread thread;
static void _bind_methods();
@@ -554,7 +554,8 @@ public:
Error start(const Callable &p_callable, const Variant &p_userdata = Variant(), Priority p_priority = PRIORITY_NORMAL);
String get_id() const;
- bool is_active() const;
+ bool is_started() const;
+ bool is_alive() const;
Variant wait_to_finish();
};