Are kqueue events "round robin"?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=xPgnTjCzi+BRbw/NeGhgy7q9O7bm9arTD2vJ8FmnAC8=; b=Fj9NAFyQHzWGWDhS/Uql2N2PnhhS5l61W4X/+Gnk3yv6sX0IopinLqoOi/IptySENn 4NVpwRuEGcJsoD2mcUv/FXE0KseU5qrIP/eYdY93HpRCKZBYbEIi1rWIMnnUkK/JA8fv pRguf6lxjgwpJIkMUQUKCG+byYVuUt+ePM2sI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=yHBjsgSA0AI136/MnCajfqoyD3q1RfTRam1lDG1exRkk4tPZDb2O6T2ABnZ1t92gdR Z4vl+dGtBzLUnz9ngwW2BIJc1TFIlXOzSCbQ1F4Hl6A7rXh9H/j97EU3yx78m5wQkaqs 4D752xQZeVK3vYVHM8lsPkeCiZO5ouYEaT5DI= Hi all, I have a question regarding the order events are returned from a kevent() call on a kqueue, if I only supply one event in the event list and no events are changed? Is there a predefined order in which the filters are processed and returned as events when there are multiple events available at the same time? For example if I have two filters, one EVFILT_READ filter and one EVFILT_WRITE filter and there is available room in both the read and the write buffers. If I make four subsequent calls, in what order will the events be returned? Will I get EVFILT_READ, EVFILT_WRITE, EVFILT_READ, EVFILT_WRITE? Or will I e.g. get one of the events repeatedly until that buffer is empty/full, like EVFILT_READ until I have read everything in the read buffer? Or is random or some other algorithm? What I want to do is to alternate between read and write events to get good responsiveness. I suppose I could change the events in the kqueue but it would be easier to rely on some guaranteed behavior. Thanks in advance, / Påhl _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Påhl Melin