libcutils/selector.c
static void fireEvents(Selector* selector) {
    Array* selectableFds = selector->selectableFds;
    int size = arraySize(selectableFds);
    int i;
    for (i = 0; i < size; i++) {
        SelectableFd* selectableFd = arrayGet(selectableFds, i);
        maybeInvoke(selectableFd, selectableFd->onExcept,
                &selector->exceptFds);
        maybeInvoke(selectableFd, selectableFd->onReadable,
                &selector->readFds);
        maybeInvoke(selectableFd, selectableFd->onWritable,
                &selector->writeFds);
    }
}
/**
 * Notifies user if file descriptors are readable or writable, or if
 * out-of-band data is present.
 */
Notifies user if file descriptors are readable or writable, or if
out-of-band data is present.
Notifies user if file descriptors are readable or writable or if out - of - band data is present .
static void fireEvents(Selector* selector) {
    Array* selectableFds = selector->selectableFds;
    int size = arraySize(selectableFds);
    int i;
    for (i = 0; i < size; i++) {
        SelectableFd* selectableFd = arrayGet(selectableFds, i);
        maybeInvoke(selectableFd, selectableFd->onExcept,
                &selector->exceptFds);
        maybeInvoke(selectableFd, selectableFd->onReadable,
                &selector->readFds);
        maybeInvoke(selectableFd, selectableFd->onWritable,
                &selector->writeFds);
    }
}
static void fireEvents ( Selector * selector ) { Array * selectableFds = selector -> selectableFds ; int size = arraySize ( selectableFds ) ; int i ; for ( i = 0 ; i < size ; i ++ ) { SelectableFd * selectableFd = arrayGet ( selectableFds , i ) ; maybeInvoke ( selectableFd , selectableFd -> onExcept , & selector -> exceptFds ) ; maybeInvoke ( selectableFd , selectableFd -> onReadable , & selector -> readFds ) ; maybeInvoke ( selectableFd , selectableFd -> onWritable , & selector -> writeFds ) ; } }
Notifies user if file descriptors are readable or writable, or if
 out-of-band data is present.
Notifies user if file descriptors are readable or writable or if out - of - band data is present .