You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Hopefully fix the random crashes with threads
(cherry picked from commit 13efc1bb06)
This commit is contained in:
committed by
Rémi Verschelde
parent
0e76f2cc95
commit
7ebfb73a4a
@@ -779,8 +779,13 @@ public:
|
||||
static int get_object_count();
|
||||
|
||||
_FORCE_INLINE_ static bool instance_validate(Object *p_ptr) {
|
||||
rw_lock->read_lock();
|
||||
|
||||
return instance_checks.has(p_ptr);
|
||||
bool exists = instance_checks.has(p_ptr);
|
||||
|
||||
rw_lock->read_unlock();
|
||||
|
||||
return exists;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user