input/async: use class HugeAllocation

This commit is contained in:
Max Kellermann
2016-06-17 18:06:02 +02:00
parent 91769d536d
commit bdd0c3686d
4 changed files with 7 additions and 9 deletions

View File

@@ -22,6 +22,7 @@
#include "InputStream.hxx"
#include "event/DeferredMonitor.hxx"
#include "util/HugeAllocator.hxx"
#include "util/CircularBuffer.hxx"
#include "util/Error.hxx"
@@ -36,6 +37,8 @@ class AsyncInputStream : public InputStream, private DeferredMonitor {
NONE, SCHEDULED, PENDING
};
HugeAllocation allocation;
CircularBuffer<uint8_t> buffer;
const size_t resume_at;
@@ -68,7 +71,7 @@ public:
*/
AsyncInputStream(const char *_url,
Mutex &_mutex, Cond &_cond,
void *_buffer, size_t _buffer_size,
size_t _buffer_size,
size_t _resume_at);
virtual ~AsyncInputStream();