Commit 0470f648 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/Connection: add method GetEventLoop()

parent 77736014
...@@ -123,7 +123,7 @@ events_to_libnfs(unsigned i) ...@@ -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: ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment