![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include "nix/util/error.hh"#include "nix/util/sync.hh"#include <boost/compat/move_only_function.hpp>#include <queue>#include <functional>#include <thread>#include <map>#include <atomic>Go to the source code of this file.
Classes | |
| class | nix::ThreadPool |
Functions | |
| nix::MakeError (ThreadPoolShutDown, Error) | |
| template<typename T> | |
| void | nix::processGraph (const std::set< T > &nodes, fun< std::set< T >(const T &)> getEdges, fun< void(const T &)> processNode) |
| void nix::processGraph | ( | const std::set< T > & | nodes, |
| fun< std::set< T >(const T &)> | getEdges, | ||
| fun< void(const T &)> | processNode ) |
Process in parallel a set of items of type T that have a partial ordering between them. Thus, any item is only processed after all its dependencies have been processed.