// wake up from cURL I/O void CurlHttpIO::addevents(Waiter* w, int flags) { int t; PosixWaiter* pw = (PosixWaiter*)w; curl_multi_fdset(curlm, &pw->rfds, &pw->wfds, &pw->efds, &t); pw->bumpmaxfd(t); }
// wake up from filesystem updates void PosixFileSystemAccess::addevents(Waiter* w, int flags) { if (notifyfd >= 0) { PosixWaiter* pw = (PosixWaiter*)w; FD_SET(notifyfd, &pw->rfds); FD_SET(notifyfd, &pw->ignorefds); pw->bumpmaxfd(notifyfd); } }