Skip to content

Fix lock order to remove the chance of deadlock#1121

Merged
cart merged 1 commit intobevyengine:masterfrom
alec-deason:fix_deadlock
Dec 22, 2020
Merged

Fix lock order to remove the chance of deadlock#1121
cart merged 1 commit intobevyengine:masterfrom
alec-deason:fix_deadlock

Conversation

@alec-deason
Copy link
Member

Because the buffers and buffer_infos locks were being acquired in different orders in different parts of the code there was the opportunity for a deadlock which I saw happen semi-regularly in situations where many sprites were being spawned per frame. This makes the order consistent and has fixed the deadlock in my application.

@memoryruins memoryruins added the A-Rendering Drawing game state to the screen label Dec 22, 2020
@cart cart merged commit 814c413 into bevyengine:master Dec 22, 2020
@fopsdev fopsdev mentioned this pull request Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants