1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

* libnix -> libstore.

This commit is contained in:
Eelco Dolstra 2003-11-18 10:55:27 +00:00
parent 8798fae304
commit 9f0f020929
26 changed files with 12 additions and 12 deletions

24
src/libstore/pathlocks.hh Normal file
View file

@ -0,0 +1,24 @@
#ifndef __PATHLOCKS_H
#define __PATHLOCKS_H
#include "util.hh"
typedef enum LockType { ltRead, ltWrite, ltNone };
bool lockFile(int fd, LockType lockType, bool wait);
class PathLocks
{
private:
list<int> fds;
Paths paths;
public:
PathLocks(const PathSet & _paths);
~PathLocks();
};
#endif /* !__PATHLOCKS_H */