diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-05-11 18:05:44 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-05-11 18:05:44 +0000 |
commit | c8d3882cdc8f9e22c58af285c1996265c1af75d5 (patch) | |
tree | bca454268647fa6edf6cd349fc92543b9789d188 /src/libstore/pathlocks.hh | |
parent | aea436503e9126b06cd15acf1f0c6b738ffbc7de (diff) |
* True parallel builds. Nix can now run as many build jobs in
parallel as possible (similar to GNU Make's `-j' switch). This is
useful on SMP systems, but it is especially useful for doing builds
on multiple machines. The idea is that a large derivation is
initiated on one master machine, which then distributes
sub-derivations to any number of slave machines. This should not
happen synchronously or in lock-step, so the master must be capable
of dealing with multiple parallel build jobs. We now have the
infrastructure to support this.
TODO: substitutes are currently broken.
Diffstat (limited to 'src/libstore/pathlocks.hh')
-rw-r--r-- | src/libstore/pathlocks.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/pathlocks.hh b/src/libstore/pathlocks.hh index 606ae91c0..433438906 100644 --- a/src/libstore/pathlocks.hh +++ b/src/libstore/pathlocks.hh @@ -17,7 +17,9 @@ private: bool deletePaths; public: - PathLocks(const PathSet & _paths); + PathLocks(); + PathLocks(const PathSet & paths); + void lockPaths(const PathSet & _paths); ~PathLocks(); void setDeletion(bool deletePaths); }; |