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

Add SyncSlice for safe(r) multithreading use of slices #387

Merged
merged 2 commits into from
Feb 17, 2023
Merged

Conversation

shkoo
Copy link
Contributor

@shkoo shkoo commented Feb 16, 2023

Add SyncSlice for safe(r) multithreading use of slices

  • CpuBuffer now uses SyncSlice underneath
  • SyncSlice now gets used for FFI instead of passing &mut[&mut [...]] around

This lets us share a writable CPU buffer between threads safely
* CpuBuffer now uses SyncSlice underneath
* SyncSlice now gets used for FFI instead of passing &mut[&mut [...]] around
@shkoo shkoo marked this pull request as ready for review February 16, 2023 19:22
@shkoo shkoo merged commit 13cabf8 into main Feb 17, 2023
@shkoo shkoo deleted the nils/cpubuf branch February 17, 2023 00:02
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