diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-08-24 16:17:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-08-24 16:17:05 -0400 |
commit | 5b18f13048d4d6e65ee93438a052e4d904f3f639 (patch) | |
tree | 7bec7a520cb463d5b59ee4d7cdd4db625550303d /event-internal.h | |
parent | 6736852eaa0e6df52b32eb2ed666688ca8d80429 (diff) | |
download | libevent-5b18f13048d4d6e65ee93438a052e4d904f3f639.tar.gz |
Make rate limiting work with common_timeout logic
Diffstat (limited to 'event-internal.h')
-rw-r--r-- | event-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/event-internal.h b/event-internal.h index 6caf4d9c..a8e744df 100644 --- a/event-internal.h +++ b/event-internal.h @@ -146,6 +146,9 @@ struct common_timeout_list { struct event_base *base; }; +/** Mask used to get the real tv_usec value from a common timeout. */ +#define COMMON_TIMEOUT_MICROSECONDS_MASK 0x000fffff + struct event_change; /* List of 'changes' since the last call to eventop.dispatch. Only maintained |