Skip to content

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.

2 participants