diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-10-02 03:03:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-02 03:03:58 +0000 |
commit | ba8a17714ead9f36424c4ecc21c009735d1408e5 (patch) | |
tree | 96389ee29ee4018f46fc008193e2870ab91424a7 /test/regress_pthread.c | |
parent | d5b640fc16e9d9e1e709ec73eb938de9eeff3f2c (diff) | |
download | libevent-ba8a17714ead9f36424c4ecc21c009735d1408e5.tar.gz |
Do not notify the main thread more than needed.
Basically, we suppress the notification when an event is added or deleted
and:
- The event has no fd, or there is no change in whether we are
reading/writing on the event's fd.
- The event has no timeout, or adding the event did not make the earliest
timeout become earlier.
This should be a big efficiency win in applications with multiple threads and
lots of timeouts.
svn:r1439
Diffstat (limited to 'test/regress_pthread.c')
0 files changed, 0 insertions, 0 deletions