1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 17:59:36 +01:00

Pool<T>: Allow a maximum pool size

This commit is contained in:
Eelco Dolstra 2016-02-23 16:40:16 +01:00
parent e292144d46
commit d5626bf4c1
4 changed files with 74 additions and 33 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include <limits>
#include <string>
#include "store-api.hh"
@ -19,9 +20,7 @@ class RemoteStore : public Store
{
public:
RemoteStore();
~RemoteStore();
RemoteStore(size_t maxConnections = std::numeric_limits<size_t>::max());
/* Implementations of abstract store API methods. */
@ -100,6 +99,8 @@ private:
FdSource from;
unsigned int daemonVersion;
~Connection();
void processStderr(Sink * sink = 0, Source * source = 0);
};