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

struct MsacAsmContextBuf: Refactor out and unsafe impl Send + Sync #1311

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

kkysen
Copy link
Collaborator

@kkysen kkysen commented Jul 13, 2024

This refactors out MsacAsmContext::buf_{pos,end} to MsacAsmContextBuf and then unsafe impl Send + Sync on it since it stores pointers from the Send + Sync Option<CArc<[u8]>> in MsacContext::asm. This makes MsacContext: Send + Sync.

src/msac.rs Outdated Show resolved Hide resolved
src/msac.rs Outdated Show resolved Hide resolved
src/msac.rs Show resolved Hide resolved
@kkysen kkysen force-pushed the kkysen/struct-MsacAsmContextBuf-Send-Sync branch from ad679f5 to 0487a2e Compare July 13, 2024 22:48
@kkysen kkysen changed the base branch from kkysen/cookie-Option-NonNull to main July 14, 2024 02:37
@kkysen kkysen force-pushed the kkysen/struct-MsacAsmContextBuf-Send-Sync branch from 0487a2e to 1ec6eab Compare July 14, 2024 02:39
src/msac.rs Show resolved Hide resolved
@kkysen kkysen force-pushed the kkysen/struct-MsacAsmContextBuf-Send-Sync branch from 1ec6eab to 6856860 Compare July 16, 2024 06:50
@kkysen kkysen merged commit 80e3b73 into main Jul 16, 2024
27 checks passed
@kkysen kkysen deleted the kkysen/struct-MsacAsmContextBuf-Send-Sync branch July 16, 2024 07:11
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