After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 406731 - Simplify multi-threaded apps using a single GUI thread
Simplify multi-threaded apps using a single GUI thread
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Small Patch
Depends on:
Blocks:
 
 
Reported: 2007-02-11 15:53 UTC by Chris Wilson
Modified: 2012-03-20 02:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support for executing a callback in the "GUI" thread. (3.52 KB, patch)
2007-02-11 15:54 UTC, Chris Wilson
none Details | Review

Description Chris Wilson 2007-02-11 15:53:07 UTC
A common technique to reduce the complexity of using GTK+ from a multi-threaded program is to only issue gtk/gdk calls from the main GUI thread. This is even more important when trying to use GTK+ on win32.

To make it even easier, support can be added to gdk to execute a callback in the main thread.
Comment 1 Chris Wilson 2007-02-11 15:54:14 UTC
Created attachment 82322 [details] [review]
Support for executing a callback in the "GUI" thread.
Comment 2 Matthias Clasen 2012-03-20 02:54:30 UTC
I think g_main_context_invoke covers this