summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2012-12-10 15:18:04 +0100
committerTomas Bzatek <tbzatek@redhat.com>2012-12-10 15:18:04 +0100
commitee170849f84ecb09caf6dc49611db9db812f060c (patch)
tree17f83ce663a6f5c3f3874d1546178baced183ad9
parent3c08836f7f9cb61317298e85c1fe6adee01860aa (diff)
downloadgvfs-ee170849f84ecb09caf6dc49611db9db812f060c.tar.gz
proxy volume monitor: Clarify when mutex is hold on construction
Found by reviewing usage of the global lock, this place is not obvious whether is inside the lock or not. Let's add a simple comment to make it clear.
-rw-r--r--monitor/proxy/gproxyvolumemonitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor/proxy/gproxyvolumemonitor.c b/monitor/proxy/gproxyvolumemonitor.c
index d21da7fc..823c1689 100644
--- a/monitor/proxy/gproxyvolumemonitor.c
+++ b/monitor/proxy/gproxyvolumemonitor.c
@@ -1088,6 +1088,7 @@ dispose_in_idle (gpointer object)
g_idle_add ((GSourceFunc) dispose_in_idle_do, g_object_ref (object));
}
+/* Typically called from g_proxy_volume_monitor_constructor() with proxy_vm lock being held */
static void
g_proxy_volume_monitor_init (GProxyVolumeMonitor *monitor)
{