summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2017-08-11 13:02:51 +0200
committerOndrej Holy <oholy@redhat.com>2017-08-14 12:18:15 +0200
commit42909185bd989dcc625b31c146db5948ecb0673a (patch)
treef71ca1cf2f36d43d9f3d9a2c7b1b8bb7a2368a8c
parent5b1a706f039554c9a30b1570d8a7d9b63732f7d9 (diff)
downloadgvfs-42909185bd989dcc625b31c146db5948ecb0673a.tar.gz
google: Add comment for mutex
It is not obvious that the mutex guards cache for multi-threaded access. Let's add an comment. https://bugzilla.gnome.org/show_bug.cgi?id=785870
-rw-r--r--daemon/gvfsbackendgoogle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendgoogle.c b/daemon/gvfsbackendgoogle.c
index 7bed6084..e68c830d 100644
--- a/daemon/gvfsbackendgoogle.c
+++ b/daemon/gvfsbackendgoogle.c
@@ -58,7 +58,7 @@ struct _GVfsBackendGoogle
GHashTable *dir_entries;
GHashTable *monitors;
GList *dir_collisions;
- GRecMutex mutex;
+ GRecMutex mutex; /* guards cache */
GoaClient *client;
gboolean entries_stale;
gchar *account_identity;