diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-23T15·40+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-23T15·40+0100 |
commit | d5626bf4c14f725136f2c5b6ac8bf818627352f0 (patch) | |
tree | a8fde81ecedfd2f8ba640e07bf6ea1bb0564c438 /src/libstore/remote-store.hh | |
parent | e292144d46e3fbb24ee9ee67f1682b268373921b (diff) |
Pool<T>: Allow a maximum pool size
Diffstat (limited to 'src/libstore/remote-store.hh')
-rw-r--r-- | src/libstore/remote-store.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh index b16a6b51db0f..af417b84ff9c 100644 --- a/src/libstore/remote-store.hh +++ b/src/libstore/remote-store.hh @@ -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); }; |