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

Change Logger to use an atomic pointer internally #978

Merged
merged 2 commits into from Oct 27, 2023

Conversation

nicholasbishop
Copy link
Contributor

Using a Logger no longer requires making it mutable, and it now provides a const new function. This allows creating a static Logger, rather than a static mut Option<Logger>, which allows for less unsafe.

Update the LOGGER in uefi-services accordingly.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

Using a `Logger` no longer requires making it mutable, and it now provides a
`const` `new` function. This allows creating a `static` `Logger`, rather than a
`static mut` `Option<Logger>`, which allows for less `unsafe`.
@phip1611 phip1611 added this pull request to the merge queue Oct 27, 2023
Merged via the queue into rust-osdev:main with commit 6e3b06c Oct 27, 2023
12 checks passed
@nicholasbishop nicholasbishop deleted the bishop-atomic-logger branch October 27, 2023 15: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