Yes I know that this should be solved
with a seperate thread and I now have read the documentation for
Glib::Dispatcher and understand the basics of it, even though I
don't understand why it doesn't allow arguments.
I also found an example for this with a lot of comments (in german, I could translate it if you think that is simpler than writing another): http://www.c-plusplus.de/forum/p816067 And to the poster: You were right, the implementation is really not that complicated :) Am 01.08.2013 17:48, schrieb Alan Mazer: Jonas, the suggested approach that I sent earlier uses a dispatcher to avoid this problem, which I think is the preferred approach. Also, the poster is trying to update a GUI window *asynchronously*. He doesn't want to use timeouts, and he doesn't want it to be button driven. I think that justifies the use of a separate thread. |