Skip to content

Conversation

ion098
Copy link
Contributor

@ion098 ion098 commented Sep 18, 2024

Describe the changes this PR makes. Why should it be merged?

This function changes the mutex implementation to acquire/release the critical section when locking/unlocking a mutex, preventing deadlocks in interrupt handlers.

Additional Context

Copy link
Member

@lewisfm lewisfm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe these changes mean you can have 2 mutex guards at the same time which is unsound.

@ion098 ion098 requested a review from lewisfm September 19, 2024 15:56
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.

2 participants