| 994 | } |
| 995 | |
| 996 | void ResourceLoader::resource_changed_emit(Resource *p_source) { |
| 997 | print_lt(vformat("%d\t%ud:%s\t" FUNCTION_STR, Thread::get_caller_id(), p_source->get_instance_id(), p_source->get_class())); |
| 998 | |
| 999 | MutexLock lock(thread_load_mutex); |
| 1000 | |
| 1001 | for (const ThreadLoadTask::ResourceChangedConnection &rcc : curr_load_task->resource_changed_connections) { |
| 1002 | if (unlikely(rcc.source == p_source)) { |
| 1003 | rcc.callable.call(); |
| 1004 | } |
| 1005 | } |
| 1006 | } |
| 1007 | |
| 1008 | Ref<Resource> ResourceLoader::ensure_resource_ref_override_for_outer_load(const String &p_path, const String &p_res_type) { |
| 1009 | ERR_FAIL_COND_V(load_nesting == 0, Ref<Resource>()); // It makes no sense to use this from nesting level 0. |
nothing calls this directly
no test coverage detected