Skip to content

Conversation

@NicksWorld
Copy link
Contributor

dec_tool_count was being called on already unlocked CoreSuspenders, causing the tool count to go negative. As the core only resumes when the tool count is 0, a deadlock occured. By returning early if the underlying lock isn't held, this issue is avoided.

CoreSuspender.

`dec_tool_count` was being called on already unlocked CoreSuspenders,
causing the tool count to go negative. As the core only resumes when the
tool count is 0, a deadlock occured. By returning early if the
underlying lock isn't held, this issue is avoided.
@myk002 myk002 merged commit df711f4 into DFHack:develop Jan 13, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants