mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* libnix -> libstore.
This commit is contained in:
parent
8798fae304
commit
9f0f020929
26 changed files with 12 additions and 12 deletions
24
src/libstore/pathlocks.hh
Normal file
24
src/libstore/pathlocks.hh
Normal 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 */
|
Loading…
Add table
Add a link
Reference in a new issue