MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / pre_unsafe_unreference

Method pre_unsafe_unreference

modules/mono/csharp_script.cpp:533–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533void CSharpLanguage::pre_unsafe_unreference(Object *p_obj) {
534#ifdef DEBUG_ENABLED
535 MutexLock lock(unsafe_object_references_lock);
536 ObjectID id = p_obj->get_instance_id();
537 HashMap<ObjectID, int>::Iterator elem = unsafe_object_references.find(id);
538 ERR_FAIL_NULL(elem);
539 if (--elem->value == 0) {
540 unsafe_object_references.remove(elem);
541 }
542#endif // DEBUG_ENABLED
543}
544
545void CSharpLanguage::frame() {
546 if (gdmono && gdmono->is_runtime_initialized() && GDMonoCache::godot_api_cache_updated) {

Calls 3

get_instance_idMethod · 0.45
findMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected