]> granicus.if.org Git - libevent/commit
Activate fd events in a pseudorandom order on older backends.
authorNick Mathewson <nickm@torproject.org>
Wed, 27 May 2009 15:35:00 +0000 (15:35 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 27 May 2009 15:35:00 +0000 (15:35 +0000)
commitcdaca02c2909452de23244738630f408b8eee8e1
tree2480a96e21339e0a491279413dbec82a447b7bcd
parent11a178f2bdd533d4f4cf7448653b0adc30c9779f
Activate fd events in a pseudorandom order on older backends.

New backends like poll and kqueue and so on add fds to the queue in
the order that they are triggered.  But the select backend currently
activates low-numbered fds first, whereas the poll and win32 backends
currently favor whatever fds have been on for the longest.  This is no
good for fairness.

svn:r1318
ChangeLog
WIN32-Code/win32.c
poll.c
select.c