summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackend.h
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2014-09-28 19:52:51 +0100
committerRoss Lagerwall <rosslagerwall@gmail.com>2014-10-17 20:22:26 +0100
commit5904c6d9614b48311217faac66b4e2f57174ba9d (patch)
tree0b34bc872db510284c805d46ae13b9c6d33e2a53 /daemon/gvfsbackend.h
parente3fab1313117d8fefc98976b8c97d0f98cbb1819 (diff)
downloadgvfs-5904c6d9614b48311217faac66b4e2f57174ba9d.tar.gz
gvfsjobunmount: Block new requests before calling unmount() on a thread
Block new requests before calling unmount() on a separate thread to prevent a race where new jobs are received and processed while the unmount() is being executed. This is not necessary for try_unmount() because all the job handling is done on the same thread as the try_unmount() method and requests are blocked when the try_unmount() method completes. https://bugzilla.gnome.org/show_bug.cgi?id=710986
Diffstat (limited to 'daemon/gvfsbackend.h')
-rw-r--r--daemon/gvfsbackend.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/gvfsbackend.h b/daemon/gvfsbackend.h
index 5908d433..6f77cf9c 100644
--- a/daemon/gvfsbackend.h
+++ b/daemon/gvfsbackend.h
@@ -511,7 +511,8 @@ void g_vfs_backend_add_auto_info (GVfsBackend
GFileInfo *info,
const char *uri);
-void g_vfs_backend_set_block_requests (GVfsBackend *backend);
+void g_vfs_backend_set_block_requests (GVfsBackend *backend,
+ gboolean value);
gboolean g_vfs_backend_get_block_requests (GVfsBackend *backend);
gboolean g_vfs_backend_unmount_with_operation_finish (GVfsBackend *backend,