summaryrefslogtreecommitdiff
path: root/event-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-04-30 17:30:48 -0400
committerNick Mathewson <nickm@torproject.org>2012-04-30 17:30:48 -0400
commit2bfda4012c92566e84de137a5fd9165051c6efc6 (patch)
tree35563904458cf4eed9bdba2f4447848539a274c5 /event-internal.h
parent30b6f889f7d8a6dc3174a35641772d3c9294eaec (diff)
downloadlibevent-2bfda4012c92566e84de137a5fd9165051c6efc6.tar.gz
If a higher-priority event becomes active, don't continue running events of the current priority.
Bug found by Ralph Castain.
Diffstat (limited to 'event-internal.h')
-rw-r--r--event-internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/event-internal.h b/event-internal.h
index 1798b702..4163a7d7 100644
--- a/event-internal.h
+++ b/event-internal.h
@@ -196,6 +196,11 @@ struct event_base {
int event_gotterm;
/** Set if we should terminate the loop immediately */
int event_break;
+ /** Set if we should start a new instance of the loop immediately. */
+ int event_continue;
+
+ /** The currently running priority of events */
+ int event_running_priority;
/** Set if we're running the event_base_loop function, to prevent
* reentrant invocation. */