]> granicus.if.org Git - libevent/commit
New event_base_update_cache_time() to set cached_tv to current time
authorAbel Mathew <abelpmathew@gmail.com>
Fri, 21 Oct 2011 19:53:32 +0000 (19:53 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 21 Oct 2011 22:08:08 +0000 (18:08 -0400)
commit212533e4a1c8ddd42c2c0af89bed6b7fdbacc0dd
tree63c6fabe25dc302976ce6053d7eaa5ce46d368b0
parentc8953d1b4863e7484bf0afb42758644a16004cb9
New event_base_update_cache_time() to set cached_tv to current time

This function is particularly useful for selectively increasing
the accuracy of the cached time value in 'base' during callbacks
that take a long time to execute.

This function has no effect if the base is currently not in its
event loop or if timeval caching is disabled via EVENT_BASE_FLAG_NO_CACHE_TIME.
event.c
include/event2/event.h