-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Jean-Michel Gonet edited this page Jan 18, 2019
·
14 revisions
Mark these words with fire and iron: You do not call GUI functions from another thread. You only do that from the main thread(also called gui thread). You could do it from another thread but you need to acquire some specific GDK locks first, if I remember correctly. https://ubuntuforums.org/showthread.php?t=2103045
Further reading:
- See an example of multi-threading. Note the use of Glib::Dispatcher: https://developer.gnome.org/gtkmm-tutorial/stable/sec-multithread-example.html.en
- Using a Glib::Dispatcher: https://developer.gnome.org/gtkmm-tutorial/stable/sec-using-glib-dispatcher.html.en
The thread variable should not go out of scope while the thread is still running:
- Terminate called without an active exception
- https://stackoverflow.com/questions/13999432/stdthread-terminate-called-without-an-active-exception-dont-want-to-joi