lib/nfs/Connection: add method GetEventLoop()

This commit is contained in:
Max Kellermann 2014-10-01 22:10:46 +02:00
parent 777360149d
commit 0470f648c6
2 changed files with 5 additions and 1 deletions

View File

@ -123,7 +123,7 @@ events_to_libnfs(unsigned i)
NfsConnection::~NfsConnection()
{
assert(SocketMonitor::GetEventLoop().IsInside());
assert(GetEventLoop().IsInside());
assert(new_leases.empty());
assert(active_leases.empty());
assert(callbacks.IsEmpty());

View File

@ -133,6 +133,10 @@ protected:
virtual void OnNfsConnectionError(Error &&error) = 0;
private:
EventLoop &GetEventLoop() {
return SocketMonitor::GetEventLoop();
}
void DestroyContext();
bool MountInternal(Error &error);
void BroadcastMountSuccess();