fuse_open.cpp

This commit is contained in:
Antonio SJ Musumeci 2024-04-12 09:46:35 -05:00
parent 726428ce59
commit f647b78031

View File

@ -344,11 +344,12 @@ namespace FUSE
open(const char *fusepath_, open(const char *fusepath_,
fuse_file_info_t *ffi_) fuse_file_info_t *ffi_)
{ {
std::mutex *m;
pt.emplace(); pt.emplace();
pt.visit(fusepath_, pt.visit(fusepath_,
[](const PTMap::value_type &x_) [&](const PTMap::value_type &x_)
{ {
x_.second.mutex.lock(); m = x_.second.mutex;
}); });
return open2(fusepath_,ffi_); return open2(fusepath_,ffi_);