From: Ivan P. <iva...@gm...> - 2015-05-12 10:42:06
|
Dear all I know that there exist postGUIAsync and postGUISync to execute code in the GUI thread. However, the thread locks if one calls postGUISync from the GUI thread (nested calls to postGUISync are therefore not allowed). I would like to ask if there's a way to work around that, with postGUI(A)Sync being called only if the current computation is not being executed in the GUI thread already. (Since we don't have a Gtk monad, and to avoid passing the threadID around, a dirty workaround could be to store the GUI thread ID in some global variable and create wrapping functions that get the current GUI thread, compare and use postGUI(A)Sync only if different.) Regards Ivan |