[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:
Karroffel 2017-07-27 09:11:46 +02:00
parent 411f09a512
commit a2795e9531
2 changed files with 45 additions and 3 deletions

View file

@ -106,6 +106,9 @@ class NativeScript : public Script {
String class_name;
#ifndef NO_THREADS
Mutex *owners_lock;
#endif
Set<Object *> instance_owners;
protected: