Make GUnixMountMonitor per-context
authorRyan Lortie <desrt@desrt.ca>
Thu, 8 Jan 2015 06:35:33 +0000 (01:35 -0500)
committerRyan Lortie <desrt@desrt.ca>
Mon, 2 Mar 2015 20:10:46 +0000 (15:10 -0500)
commit548c165a9f8386af29e8bb8243d8923e0f315c2e
treef856f6f5a9e44792ab63d4d331f1490673bdc8b8
parentae38d2bfa4e0bd72bf418a42cd5bda7a156b6092
Make GUnixMountMonitor per-context

GUnixMountMonitor was not threadsafe before.  It was a global singleton
which emitted signals in the first thread that happened to construct it.

Move it to a per-context singleton model where each GMainContext gets
its own GUnixMountMonitor.  Monitor for the changes from the GLib worker
thread and dispatch the results to each context with an active monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=742599
gio/gunixmounts.c