20enum LockType { ltRead, ltWrite, ltNone };
22bool lockFile(Descriptor desc, LockType lockType,
bool wait);
27 typedef std::pair<Descriptor, Path> FDPair;
28 std::list<FDPair> fds;
33 PathLocks(
const PathSet & paths,
34 const std::string & waitMsg =
"");
35 bool lockPaths(
const PathSet & _paths,
36 const std::string & waitMsg =
"",
40 void setDeletion(
bool deletePaths);
46 bool acquired =
false;
48 FdLock(
Descriptor desc, LockType lockType,
bool wait, std::string_view waitMsg);
53 lockFile(desc, ltNone,
false);
Definition file-descriptor.hh:152
int Descriptor
Definition file-descriptor.hh:20
Symbol create(std::string_view s)
Definition lexer.l:1018
void deleteLockFile(const Path &path, Descriptor desc)
AutoCloseFD openLockFile(const Path &path, bool create)
std::string Path
Definition types.hh:22