Home | History | Annotate | Download | only in cutils

Lines Matching refs:Selector

18  * Framework for multiplexing I/O. A selector manages a set of file
35 typedef struct Selector Selector;
38 * A selectable descriptor. Contains callbacks which the selector can invoke
44 * selector by setting the 'remove' flag. The selector will remove the
47 * SelectableFd fields should only be modified from the selector loop.
59 * Set this flag when you no longer wish to be selected. The selector
65 * Invoked by the selector before calling select. You can set up other
71 * Invoked by the selector when the descriptor has data available. Set to
77 * Invoked by the selector when the descriptor can accept data. Set to
83 * Invoked by the selector when out-of-band (OOB) data is available. Set to
89 * Invoked by the selector after the descriptor is removed from the
90 * selector but before the selector frees the SelectableFd memory.
95 * The selector which selected this fd. Set by the selector itself.
97 Selector* selector;
101 * Creates a new selector.
103 Selector* selectorCreate(void);
106 * Creates a new selectable fd, adds it to the given selector and returns a
107 * pointer. Outside of 'selector' and 'fd', all fields are set to 0 or NULL
110 * The selectable fd should only be modified from the selector loop thread.
112 SelectableFd* selectorAdd(Selector* selector, int fd);
115 * Wakes up the selector even though no I/O events occurred. Use this
118 void selectorWakeUp(Selector* selector);
124 void selectorLoop(Selector* selector);