Skip to content

encapsulate Buffer access#109

Open
datdenkikniet wants to merge 1 commit into
masterfrom
uh-oh-ub2
Open

encapsulate Buffer access#109
datdenkikniet wants to merge 1 commit into
masterfrom
uh-oh-ub2

Conversation

@datdenkikniet

Copy link
Copy Markdown
Contributor

As access to Buffers is shared with the DMA,
we cannot simply use (non-)shared references:
the compiler could optimize things in unforseen
ways if it believes that it holds exclusive references to the data buffer.

Encapsulate access to the Buffer more strictly and only access it through an UnsafeCell.

As access to `Buffer`s is shared with the DMA,
we cannot simply use (non-)shared references:
the compiler could optimize things in unforseen
ways if it believes that it holds exclusive references
to the data buffer.

Encapsulate access to the `Buffer` more strictly and
only access it through an `UnsafeCell`.
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.

1 participant