1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[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.
This commit is contained in:
Brian Semrau
2021-10-06 00:28:24 -04:00
parent a7ba227631
commit f28c677f3d
3 changed files with 30 additions and 13 deletions

View File

@@ -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();
};