Commit 17a14f1af2ace0201baa1b5bbba031296e62d879

Christopher Davis 2010-09-01T11:04:57

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.