Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make NIC not mut anymore #149

Merged
merged 1 commit into from Aug 9, 2021
Merged

Conversation

mkroening
Copy link
Member

@mkroening mkroening commented Aug 9, 2021

This moves the Mutex outside NetworkState, avoiding the static mut and properly locking the whole network state on access.

This considerably reduces unsafe code.

What do you think?

This moves the Mutex outside NetworkState, avoiding the `static mut` and properly locking the whole network state on access.
Copy link
Contributor

@stlankes stlankes left a comment

Choose a reason for hiding this comment

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

👍

@stlankes
Copy link
Contributor

stlankes commented Aug 9, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 9, 2021

@bors bors bot merged commit 583e298 into hermit-os:master Aug 9, 2021
@mkroening mkroening deleted the net-static-mut branch August 10, 2021 08:32
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.

None yet

2 participants