event: introduce generic API for internal event loop

This commit is contained in:
Denis Krjuchkov
2013-11-28 16:37:23 +06:00
parent f90abe9530
commit bb288f0284
7 changed files with 149 additions and 55 deletions

View File

@@ -158,8 +158,9 @@ SocketMonitor::Abandon()
assert(IsDefined());
#ifdef USE_INTERNAL_EVENTLOOP
int old_fd = fd;
fd = -1;
loop.Abandon(*this);
loop.Abandon(old_fd, *this);
#else
Steal();
#endif