Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Add thread safe global static framebuffer #29

Merged
merged 2 commits into from
Feb 9, 2024
Merged

Add thread safe global static framebuffer #29

merged 2 commits into from
Feb 9, 2024

Conversation

EthanPlant
Copy link
Collaborator

Creates a lazy_static instance of the framebuffer struct for global access. This lazy static ensures thread safety by wrapping the address to the framebuffer in an atomic pointer and wraps the framebuffer struct in a mutex.

Partially relates to #28

Copy link
Collaborator

@mdpatelcsecon mdpatelcsecon left a comment

Choose a reason for hiding this comment

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

Everything looks good to me.

@mdpatelcsecon mdpatelcsecon merged commit 83f84ca into main Feb 9, 2024
2 checks passed
@EthanPlant EthanPlant linked an issue Feb 9, 2024 that may be closed by this pull request
@EthanPlant EthanPlant removed a link to an issue Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants