mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
28619e26cf
Benefits: - Simpler code. The main load function is renamed so it's apparent that it's not just a thread entry point anymore. - Cache and thread modes of the original task are honored. A beautiful consequence of this is that, unlike formerly, re-issued loads can use the resource cache, which makes this mechanism much more performant. - The newly added getter for caller task id in WorkerThreadPool allows to remove the custom tracking of that in ResourceLoader. - The check to replace a cached resource and the replacement itself happen atomically. That fixes deadlock prevention leading to multiple resource instances of the same one on disk. As a side effect, it also makes the regular check for replace load mode more robust. |
||
---|---|---|
.. | ||
callable_method_pointer.cpp | ||
callable_method_pointer.h | ||
class_db.cpp | ||
class_db.h | ||
make_virtuals.py | ||
message_queue.cpp | ||
message_queue.h | ||
method_bind.cpp | ||
method_bind.h | ||
object_id.h | ||
object.compat.inc | ||
object.cpp | ||
object.h | ||
ref_counted.cpp | ||
ref_counted.h | ||
script_instance.cpp | ||
script_instance.h | ||
script_language_extension.cpp | ||
script_language_extension.h | ||
script_language.cpp | ||
script_language.h | ||
SCsub | ||
undo_redo.cpp | ||
undo_redo.h | ||
worker_thread_pool.cpp | ||
worker_thread_pool.h |