27 FileShield::FileShield()
47 auto it = fs.shields.find(fname);
48 if (it == fs.shields.end())
51 return *(fs.shields.insert(std::make_pair(fname, std::unique_ptr<std::mutex>(
new std::mutex))).first->second);
static std::mutex & GetMutex(const Path &fname)
Gets the mutex associated to a file.
A convenience class for file paths.
A mutex manager for file access.