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

Support thread pools #283

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Support thread pools #283

merged 1 commit into from
Jun 17, 2024

Conversation

joshtriplett
Copy link
Contributor

Create a safe ThreadPool type wrapping ZSTD_threadPool. Allow binding a &ThreadPool to a CCtx, which requires that the lifetime of the &ThreadPool outlive the CCtx.

Fixes: #282

Create a safe `ThreadPool` type wrapping `ZSTD_threadPool`. Allow
binding a `&ThreadPool` to a `CCtx`, which requires that the lifetime of
the `&ThreadPool` outlive the `CCtx`.
@gyscos
Copy link
Owner

gyscos commented Jun 17, 2024

Hi, and thanks for the work! This looks perfect!

@gyscos gyscos merged commit 173c956 into gyscos:main Jun 17, 2024
5 checks passed
@joshtriplett joshtriplett deleted the thread-pools branch June 17, 2024 18:04
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.

Please provide safe bindings to the thread pool mechanism
2 participants