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

Multithreading restrictions for libflif_dec.so? #517

Open
newpavlov opened this issue Jun 15, 2018 · 2 comments
Open

Multithreading restrictions for libflif_dec.so? #517

newpavlov opened this issue Jun 15, 2018 · 2 comments

Comments

@newpavlov
Copy link

newpavlov commented Jun 15, 2018

I am using libflif_dec.so in Rust through FFI. Code looks roughly like this. My code converts grayscale flif images to PNM with some processing. In single thread it works without problems, but when I use 3-4 threads to parallelize computations, for 1-2 first images in the queue FLIF decoder returns empty image (on some images it's zeroed pixels, on other equal to 15). Is there some multi-threading restrictions for libflif_dec.so or what else could cause this problem?

@jonsneyers
Copy link
Member

There are still some global variables in the code, I think...

@newpavlov
Copy link
Author

Is there a risk of more complex corruptions other than empty image?

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

No branches or pull requests

2 participants