-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Create new blosc2_schunk_decompress_chunk_ctx() #147
Comments
Just to be clear, this means that it's not possible to use blosc concurrently from multiple threads. For example if one creates a |
Well, there are two different kinds of functions. The ones that create a new |
Hm, reading the code I can't convince myself that event Generally I think that any function which uses the source array context is not thread-safe, and should actually use a user-provided context? |
Ah, that maybe. Would you be up to send a PR with a |
The existing
blosc2_schunk_decompress_chunk()
function uses the internal context associated with the superchunk for decompressing the specified chunk. However, reusing the same context is intrinsically thread unsafe.It would be nice to add another
blosc2_schunk_decompress_chunk_ctx()
function where the user can pass a different context per thread, so that it can be thread safe.The text was updated successfully, but these errors were encountered: