You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
[NativeScript] call _init on instance creation
This also adds basic locking for the set of owners to avoid threading problems
This commit is contained in:
@@ -106,6 +106,9 @@ class NativeScript : public Script {
|
||||
|
||||
String class_name;
|
||||
|
||||
#ifndef NO_THREADS
|
||||
Mutex *owners_lock;
|
||||
#endif
|
||||
Set<Object *> instance_owners;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user