input/async: add attribute "postponed_exception"

Will replace "postponed_error".
This commit is contained in:
Max Kellermann
2016-09-09 15:41:09 +02:00
parent 6ed77f2a27
commit 8092e18158
2 changed files with 11 additions and 0 deletions

View File

@@ -26,6 +26,8 @@
#include "util/CircularBuffer.hxx"
#include "util/Error.hxx"
#include <exception>
/**
* Helper class for moving asynchronous (non-blocking) InputStream
* implementations to the I/O thread. Data is being read into a ring
@@ -67,6 +69,8 @@ class AsyncInputStream : public InputStream {
protected:
Error postponed_error;
std::exception_ptr postponed_exception;
public:
/**
* @param _buffer a buffer allocated with HugeAllocate(); the