diff options
author | Karroffel <therzog@mail.de> | 2017-07-27 09:11:46 +0200 |
---|---|---|
committer | Karroffel <therzog@mail.de> | 2017-07-27 11:12:49 +0200 |
commit | a2795e95318f57747dbb86a2a12b3567838b8c7d (patch) | |
tree | 0df63b2a953aaf7d889232c447eda3d4fc7417dd /modules/nativescript/nativescript.h | |
parent | 411f09a512d5847fc9c6270439308d1e3093f211 (diff) |
[NativeScript] call _init on instance creation
This also adds basic locking for the set of owners
to avoid threading problems
Diffstat (limited to 'modules/nativescript/nativescript.h')
-rw-r--r-- | modules/nativescript/nativescript.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/nativescript/nativescript.h b/modules/nativescript/nativescript.h index 05e2d361d3..95b4954171 100644 --- a/modules/nativescript/nativescript.h +++ b/modules/nativescript/nativescript.h @@ -106,6 +106,9 @@ class NativeScript : public Script { String class_name; +#ifndef NO_THREADS + Mutex *owners_lock; +#endif Set<Object *> instance_owners; protected: |