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

Method post_unsafe_reference

modules/mono/csharp_script.cpp:525–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525void CSharpLanguage::post_unsafe_reference(Object *p_obj) {
526#ifdef DEBUG_ENABLED
527 MutexLock lock(unsafe_object_references_lock);
528 ObjectID id = p_obj->get_instance_id();
529 unsafe_object_references[id]++;
530#endif // DEBUG_ENABLED
531}
532
533void CSharpLanguage::pre_unsafe_unreference(Object *p_obj) {
534#ifdef DEBUG_ENABLED

Calls 1

get_instance_idMethod · 0.45

Tested by

no test coverage detected