You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
copark86
changed the title
Issue wiht multithreading
Issue with multithreading
Sep 20, 2019
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.
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.
The text was updated successfully, but these errors were encountered: