diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-08-11 12:47:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-08-17 22:04:04 -0400 |
commit | 3c63edd1f7ea1e26937466cf3ad16b7bf0e265e4 (patch) | |
tree | 2d8f9c3b93818d7d1ce675767b01ee8346064dc2 /defer-internal.h | |
parent | a37a0c0e35cae9085460f70b02fa92bf9800028c (diff) | |
download | libevent-3c63edd1f7ea1e26937466cf3ad16b7bf0e265e4.tar.gz |
Make the priority inversion code use gettime(), not evutil_gettimeofday()
Since we're computing the time after each callback, we might as well
update the time cache (if we're using it) and use monotonic time (if
we've got that).
Diffstat (limited to 'defer-internal.h')
-rw-r--r-- | defer-internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/defer-internal.h b/defer-internal.h index 1892c556..68fe8851 100644 --- a/defer-internal.h +++ b/defer-internal.h @@ -57,6 +57,10 @@ struct deferred_cb_queue { /** Lock used to protect the queue. */ void *lock; + /** Which event_base does this queue associate itself with? + * (Used for timing) */ + struct event_base *base; + /** How many entries are in the queue? */ int active_count; |