Example #1
0
// 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);
}
Example #2
0
File: fs.cpp Project: hnkien/sdk
// 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);
    }
}