Skip to content

fix: improve mutex error handling in multithreaded code#995

Open
DeVikingMark wants to merge 1 commit into
zkonduit:mainfrom
DeVikingMark:reg
Open

fix: improve mutex error handling in multithreaded code#995
DeVikingMark wants to merge 1 commit into
zkonduit:mainfrom
DeVikingMark:reg

Conversation

@DeVikingMark
Copy link
Copy Markdown

Replace unwrap() calls on Mutex lock operations with proper error handling:

  • Handle poisoned mutex scenarios gracefully instead of panicking
  • Add explicit drop() calls for faster lock release in hot paths
  • Use map_err() for consistent error propagation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant