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 336361 - GTK+ isn't thread-safe
GTK+ isn't thread-safe
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-03-28 15:34 UTC by Snark
Modified: 2006-03-28 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Snark 2006-03-28 15:34:54 UTC
Using gtk+ from different threads is uneasy and error-prone ; the gdk lock must be obtained/released explicitly.

I won't deny that it's the programmer's job to protect the same gtk+ object to be accessed from different threads, but for the gdk lock, I think it should be gtk+'s job to ensure it takes the lock when it needs to.

In some sense, the program is gtk+'s client, not gdk's (nor xlib's), hence shouldn't have to care about the implementation details too much.