How does the call stack look like when mouse callback function is fired?
The situation here specifically is that if the mouse callback takes very long to finish, and the user keeps clicking and triggering the callback, will the old, unfinished function be preempted? Or will the old one keep executing and the new callback is placed on a separate thread (or some other way)?
Thanks!
unfortunately, this depends on the combination of os/gui toolkit used
Thanks berak. Can you provide some examples? For example, what is it like on your os/toolkit configuration? I am using Ubuntu 14.04 and OpenCV 2.4.8. I don't know what you refer to as toolkit actually.
gtk, qt on linux (which one are you using ?)
What's the call stack of mouse callback like on your setting? I am not sure if I'm using gtk or not. I'm not using Qt if you mean QtCreator. I'm just using emacs for editing, no IDE.
well, you are for sure using something to show a window..
this box is on win, and it uses the win32 eventloop (which is not threaded, there's some other magic)
imho, you should not dig into your os, but just do "less" in your event handler. make it trigger some value, do the work in your main thread, and control it from there.