input/nfs: use NfsFileReader::GetEventLoop()
This commit is contained in:
parent
6d5904801e
commit
58ac72f79d
@ -41,14 +41,15 @@ static const size_t NFS_MAX_BUFFERED = 512 * 1024;
|
|||||||
*/
|
*/
|
||||||
static const size_t NFS_RESUME_AT = 384 * 1024;
|
static const size_t NFS_RESUME_AT = 384 * 1024;
|
||||||
|
|
||||||
class NfsInputStream final : public AsyncInputStream, NfsFileReader {
|
class NfsInputStream final : NfsFileReader, public AsyncInputStream {
|
||||||
uint64_t next_offset;
|
uint64_t next_offset;
|
||||||
|
|
||||||
bool reconnect_on_resume = false, reconnecting = false;
|
bool reconnect_on_resume = false, reconnecting = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NfsInputStream(const char *_uri, Mutex &_mutex, Cond &_cond)
|
NfsInputStream(const char *_uri, Mutex &_mutex, Cond &_cond)
|
||||||
:AsyncInputStream(io_thread_get(), _uri, _mutex, _cond,
|
:AsyncInputStream(NfsFileReader::GetEventLoop(),
|
||||||
|
_uri, _mutex, _cond,
|
||||||
NFS_MAX_BUFFERED,
|
NFS_MAX_BUFFERED,
|
||||||
NFS_RESUME_AT) {}
|
NFS_RESUME_AT) {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user