diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-10-06 21:20:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 21:20:33 +0200 |
commit | 26f4848d013c5a234c2399717372ef72985cb655 (patch) | |
tree | a0af837922e0940b7639b9d6d2c25ac1da8ffcb2 /core/core_bind.h | |
parent | 164dc11e04b9cb5d0758dc310c624340355f32a3 (diff) | |
parent | f28c677f3dacf0077cf2ace0f0dff9c991d1dd2d (diff) | |
download | redot-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.h | 5 |
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(); }; |