]> granicus.if.org Git - libevent/commit
Only process up to MAX_DEFERRED deferred_cbs at a time.
authorChristopher Davis <chrisd@torproject.org>
Wed, 1 Sep 2010 18:04:57 +0000 (11:04 -0700)
committerChristopher Davis <chrisd@torproject.org>
Wed, 8 Sep 2010 08:22:22 +0000 (01:22 -0700)
commit17a14f1af2ace0201baa1b5bbba031296e62d879
treeca5537e32f73d77f0942a65f21a0fc14fb2b5a6f
parent2447fe88860c40e968261ad8ea059166cb84a280
Only process up to MAX_DEFERRED deferred_cbs at a time.

If threads queue callbacks while event_process_deferred_callbacks is
running, the loop may spin long enough to significantly skew timers.
A unit test stressing this behavior is also in this commit.
bufferevent.c
event.c
test/regress_thread.c