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

Issue with multithreading #10

Open
copark86 opened this issue Sep 20, 2019 · 1 comment
Open

Issue with multithreading #10

copark86 opened this issue Sep 20, 2019 · 1 comment

Comments

@copark86
Copy link

copark86 commented Sep 20, 2019

I am trying to use cvplot in 2 threads where each of the thread draws separate plots. The problem is that it freezes when view flush or finish is called. It seems like there is a shared component in the view class. Does anyone have the same issue?

PS. Same problem when thread 1 display opencv window and thread 2 try to draw a plot.

@copark86 copark86 changed the title Issue wiht multithreading Issue with multithreading Sep 20, 2019
@leovandriel
Copy link
Owner

Thanks for reporting. cvplot does not support multi-threading. It uses shared variables, like shared_window and shared_figures_ in window.cc and figure.cc. Adding locking is not on the roadmap, but I gladly merge a PR with a fix.

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