mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +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:
		
							parent
							
								
									411f09a512
								
							
						
					
					
						commit
						a2795e9531
					
				
					 2 changed files with 45 additions and 3 deletions
				
			
		|  | @ -106,6 +106,9 @@ class NativeScript : public Script { | |||
| 
 | ||||
| 	String class_name; | ||||
| 
 | ||||
| #ifndef NO_THREADS | ||||
| 	Mutex *owners_lock; | ||||
| #endif | ||||
| 	Set<Object *> instance_owners; | ||||
| 
 | ||||
| protected: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Karroffel
						Karroffel