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

Make Encoder and Decoder Send #15

Merged
merged 1 commit into from Aug 18, 2016
Merged

Make Encoder and Decoder Send #15

merged 1 commit into from Aug 18, 2016

Conversation

maximelenoir
Copy link
Contributor

LZ4F{Compression,Decompression}Context are raw pointers which make
Encoder and Decoder non-Send. However, given that those contexts are
uniquely owned by the Encoder/Decoder, it is safe to implement Send on
them, making Encoder/Decoder Send themselves.

It would have been better to use std::ptr::Unique but it is still unstable.

LZ4F{Compression,Decompression}Context are raw pointers which make
Encoder and Decoder non-Send. However, given that those contexts are
uniquely owned by the Encoder/Decoder, it is safe to implement Send on
them, making Encoder/Decoder Send themselves.
@bozaro bozaro merged commit ef46781 into bozaro:master Aug 18, 2016
@bozaro
Copy link
Owner

bozaro commented Aug 18, 2016

Thanks a lot.
This change is merged and available in lz4 v1.18.131

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