mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 08:28:43 +02:00
Make cancellation threadsafe (i.e. guarantee its only done once, and
2008-03-05 Alexander Larsson <alexl@redhat.com> * gfilemonitor.c: Make cancellation threadsafe (i.e. guarantee its only done once, and always done) * glocaldirectorymonitor.c: Make sure we the monitor lives while the mounts_changed callback is being called (#520484) svn path=/trunk/; revision=6630
This commit is contained in:
committed by
Alexander Larsson
parent
ad649b0bd1
commit
602295158f
@@ -128,8 +128,8 @@ g_local_directory_monitor_constructor (GType type,
|
||||
g_unix_mount_free (mount);
|
||||
|
||||
local_monitor->mount_monitor = g_unix_mount_monitor_new ();
|
||||
g_signal_connect (local_monitor->mount_monitor, "mounts_changed",
|
||||
G_CALLBACK (mounts_changed), local_monitor);
|
||||
g_signal_connect_object (local_monitor->mount_monitor, "mounts_changed",
|
||||
G_CALLBACK (mounts_changed), local_monitor, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user