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 588669 - Call dbus_threads_init_default before doing any other dbus calls
Call dbus_threads_init_default before doing any other dbus calls
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-07-15 15:05 UTC by Colin Walters
Modified: 2009-07-15 16:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Call dbus_threads_init_default before doing any other dbus calls (1.23 KB, patch)
2009-07-15 15:05 UTC, Colin Walters
none Details | Review

Description Colin Walters 2009-07-15 15:05:18 UTC
This avoids race conditions with other threads; there are various
internal mutexes involved in dbus_bus_get_private that need to
be locked if g_vfs_get_default is called from a non-main thread.
Comment 1 Colin Walters 2009-07-15 15:05:23 UTC
Created attachment 138451 [details] [review]
Call dbus_threads_init_default before doing any other dbus calls
Comment 2 Matthias Clasen 2009-07-15 15:16:11 UTC
That looks obviously right to me.
Comment 3 Colin Walters 2009-07-15 16:00:20 UTC
pushed