Searched refs:SelectableFd (Results 1 - 3 of 3) sorted by relevance

/system/core/include/cutils/
H A Dselector.h47 * SelectableFd fields should only be modified from the selector loop.
49 typedef struct SelectableFd SelectableFd; typedef in typeref:struct:SelectableFd
50 struct SelectableFd { struct
68 void (*beforeSelect)(SelectableFd* self);
74 void (*onReadable)(SelectableFd* self);
80 void (*onWritable)(SelectableFd* self);
86 void (*onExcept)(SelectableFd* self);
90 * selector but before the selector frees the SelectableFd memory.
92 void (*onRemove)(SelectableFd* sel
[all...]
/system/core/libcutils/
H A Dselector.c40 SelectableFd* wakeupFd;
47 static void eatWakeupData(SelectableFd* wakeupFd) {
101 SelectableFd* wakeupFd = selectorAdd(selector, selector->wakeupPipe[0]);
112 SelectableFd* selectorAdd(Selector* selector, int fd) {
115 SelectableFd* selectableFd = calloc(1, sizeof(SelectableFd));
130 static inline bool maybeAdd(SelectableFd* selectableFd,
131 void (*callback)(SelectableFd*), fd_set* fdSet) {
156 SelectableFd* selectableFd = arrayGet(selectableFds, i);
201 static inline void maybeInvoke(SelectableFd* selectableF
[all...]
H A Dmq.c173 SelectableFd* fd;
515 static void peerProxyWrite(SelectableFd* fd) {
561 static void peerProxyBeforeSelect(SelectableFd* fd) {
703 static void peerProxyRead(SelectableFd* fd);
706 static void peerProxySetFd(PeerProxy* peerProxy, SelectableFd* fd) {
785 SelectableFd* selectableFd = selectorAdd(peer->selector, incomingFd);
965 static void peerProxyRead(SelectableFd* fd) {
1025 static void masterAcceptConnection(SelectableFd* listenerFd) {
1070 SelectableFd* socketFd = selectorAdd(masterPeer->selector, socket);
1297 SelectableFd* listenerF
[all...]

Completed in 60 milliseconds