lib/nfs/Connection: add method GetEventLoop()
This commit is contained in:
parent
777360149d
commit
0470f648c6
@ -123,7 +123,7 @@ events_to_libnfs(unsigned i)
|
|||||||
|
|
||||||
NfsConnection::~NfsConnection()
|
NfsConnection::~NfsConnection()
|
||||||
{
|
{
|
||||||
assert(SocketMonitor::GetEventLoop().IsInside());
|
assert(GetEventLoop().IsInside());
|
||||||
assert(new_leases.empty());
|
assert(new_leases.empty());
|
||||||
assert(active_leases.empty());
|
assert(active_leases.empty());
|
||||||
assert(callbacks.IsEmpty());
|
assert(callbacks.IsEmpty());
|
||||||
|
@ -133,6 +133,10 @@ protected:
|
|||||||
virtual void OnNfsConnectionError(Error &&error) = 0;
|
virtual void OnNfsConnectionError(Error &&error) = 0;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
EventLoop &GetEventLoop() {
|
||||||
|
return SocketMonitor::GetEventLoop();
|
||||||
|
}
|
||||||
|
|
||||||
void DestroyContext();
|
void DestroyContext();
|
||||||
bool MountInternal(Error &error);
|
bool MountInternal(Error &error);
|
||||||
void BroadcastMountSuccess();
|
void BroadcastMountSuccess();
|
||||||
|
Loading…
Reference in New Issue
Block a user