Assume I have a main thread which calls namedWindow, setMouseCallback, imread, imshow, etc. Is MouseCallback running in another different thread from the main thread when a mouse event occurs?
This is kind of important to me because both the main thread and MouseCallback write/read the same variable possibly at the same time. If MouseCallback is running in another thread from the main one, I need to write mutex to avoid racing. I did not find related OpenCV document so I ask here. Thanks for you help.