event: introduce generic API for internal event loop
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user