mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 22:20:20 +00:00
85a10eccc5
# Objective Fixes a possible deadlock between `AssetServer::get_asset_loader` / `AssetServer::add_loader` A thread could take the `extension_to_loader_index` read lock, and then have the `server.loader` write lock taken in add_loader before it can. Then add_loader can't take the extension_to_loader_index lock, and the program deadlocks. To be more precise: ## Step 1: Thread 1 grabs the `extension_to_loader_index` lock on lines 138..139: |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |