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. |
||
---|---|---|
.. | ||
config | ||
crypto | ||
debugger | ||
error | ||
extension | ||
input | ||
io | ||
math | ||
object | ||
os | ||
string | ||
templates | ||
variant | ||
core_bind.cpp | ||
core_bind.h | ||
core_builders.py | ||
core_constants.cpp | ||
core_constants.h | ||
core_globals.cpp | ||
core_globals.h | ||
core_string_names.cpp | ||
core_string_names.h | ||
doc_data.cpp | ||
doc_data.h | ||
register_core_types.cpp | ||
register_core_types.h | ||
SCsub | ||
typedefs.h | ||
version.h |