diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-08-11 12:38:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-08-17 22:03:57 -0400 |
commit | a37a0c0e35cae9085460f70b02fa92bf9800028c (patch) | |
tree | d6f3fa3e23b9a3948f13e4d2e700825cdd95afbd /event-internal.h | |
parent | a9866aa8c1fa540587f90ed1668d3a438e5e23e8 (diff) | |
download | libevent-a37a0c0e35cae9085460f70b02fa92bf9800028c.tar.gz |
Make max_dispatch_interval able to apply only to low-priority events
Suggested by Alexander Drozdov
Diffstat (limited to 'event-internal.h')
-rw-r--r-- | event-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/event-internal.h b/event-internal.h index f495d6d2..a5f4afed 100644 --- a/event-internal.h +++ b/event-internal.h @@ -275,6 +275,7 @@ struct event_base { struct timeval max_dispatch_time; int max_dispatch_callbacks; + int limit_callbacks_after_prio; /* Notify main thread to wake up break, etc. */ /** True if the base already has a pending notify, and we don't need @@ -304,6 +305,7 @@ struct event_config { int n_cpus_hint; struct timeval max_dispatch_interval; int max_dispatch_callbacks; + int limit_callbacks_after_prio; enum event_method_feature require_features; enum event_base_config_flag flags; }; |