Nix 2.34.6
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::GitFileSystemObjectSinkImpl Struct Reference
Inheritance diagram for nix::GitFileSystemObjectSinkImpl:

Classes

struct  Directory
 A directory to be written as a Git tree. More...
struct  Child
struct  State

Public Member Functions

 GitFileSystemObjectSinkImpl (ref< GitRepoImpl > repo)
void addNode (State &state, const CanonPath &path, Child &&child)
void createRegularFile (const CanonPath &path, fun< void(CreateRegularFileSink &)> func) override
void createDirectory (const CanonPath &path) override
void createSymlink (const CanonPath &path, const std::string &target) override
void createHardlink (const CanonPath &path, const CanonPath &target) override
Hash flush () override

Public Attributes

ref< GitRepoImplrepo
Pool< GitRepoImplrepoPool
unsigned int concurrency = std::min(std::thread::hardware_concurrency(), 10U)
ThreadPool workers {concurrency}
std::atomic< size_t > totalBufSize {0}
size_t nextId = 0
Sync< State_state
std::map< CanonPath, CanonPath > hardLinks

Static Public Attributes

static constexpr std::size_t maxBufSize = 16 * 1024 * 1024

Member Data Documentation

◆ totalBufSize

std::atomic<size_t> nix::GitFileSystemObjectSinkImpl::totalBufSize {0}

Total file contents in flight.


The documentation for this struct was generated from the following file:
  • /builddir/build/BUILD/nix-2.34.6-build/nix-2.34.6/src/libfetchers/git-utils.cc