Merge pull request #30934 from santouits/debugg

Hopefully fix the random crashes with threads
This commit is contained in:
Rémi Verschelde 2019-08-08 14:50:47 +02:00 committed by GitHub
commit 274bac2783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -794,8 +794,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;
}
};