cvplot
cvplot copied to clipboard
Issue with multithreading
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.
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.