[libdispatch-dev] Question about event handling in libdispatch
fykcee1 at gmail.com
Fri Aug 27 20:20:17 PDT 2010
A kevent can associate with more than one source. What if:
1. A kevent of EVFILT_READ indicating that data is available to read.
2. A series of sources associating with this kevent are waken up.
3. One source handler fetches the data.
4. The rest source handlers will find there is no data available to read
in monitored fd.
It seems waking up more than one source doesn't make sense here? The rest
source handlers will simply fail to read.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the libdispatch-dev