summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-03 20:03:51 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-03 20:03:51 +0000
commitfb9e62caaad5a3778a94978607f4e1b8b649d0fa (patch)
tree3600808219eb4df8dc83b03b7dc5c1700412b537
parentDon't create a big mess when multiple invocations of glacier occur (diff)
downloadnetfs-fb9e62caaad5a3778a94978607f4e1b8b649d0fa.tar.bz2
netfs-fb9e62caaad5a3778a94978607f4e1b8b649d0fa.tar.xz
netfs-fb9e62caaad5a3778a94978607f4e1b8b649d0fa.zip
Internal functions should grab the lock as well
-rw-r--r--netfs/fuse/fuseAppBase.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/netfs/fuse/fuseAppBase.h b/netfs/fuse/fuseAppBase.h
index 44f3c81..4fdfb37 100644
--- a/netfs/fuse/fuseAppBase.h
+++ b/netfs/fuse/fuseAppBase.h
@@ -140,6 +140,7 @@ private:
{
if constexpr (!std::is_same<BFunc, IFunc>::value) {
return [](Args... a) {
+ SharedLock(fuseApp->_lock);
return (fuseApp->*bfunc)(a...);
};
}