summaryrefslogtreecommitdiffstats
path: root/core/core_bind.h
diff options
context:
space:
mode:
authorBrian Semrau <brian.semrau@gmail.com>2021-10-06 00:28:24 -0400
committerBrian Semrau <brian.semrau@gmail.com>2021-10-06 12:47:58 -0400
commitf28c677f3dacf0077cf2ace0f0dff9c991d1dd2d (patch)
tree109ccbf25af5598cb1f855c6a865a2894f00e732 /core/core_bind.h
parenta7ba22763139b29d825e0f4ef3e718533da069ea (diff)
downloadredot-engine-f28c677f3dacf0077cf2ace0f0dff9c991d1dd2d.tar.gz
[core_bind] Add `is_alive` to Thread. Replace `is_active` with `is_started`.
Replacing `is_active` resolves an API discrepancy between core_bind Thread and core/os Thread.
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();
};