From: Scott Michelson Date: Fri, 2 Dec 2016 19:48:48 +0000 (-0800) Subject: support getting timer from eventbase X-Git-Tag: v2016.12.05.00~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=853adb4fb8812b65e360dc77ae14f6013a19119f;p=folly.git support getting timer from eventbase Summary: This brings the EventBase functionality of getting a timer for the eventbase into the virtual interface Differential Revision: D4264135 fbshipit-source-id: e5526610eca808e1d7b549a7cd6cd7b2c65d3ce1 --- diff --git a/folly/io/async/VirtualEventBase.h b/folly/io/async/VirtualEventBase.h index e18cffd4..ebe81182 100644 --- a/folly/io/async/VirtualEventBase.h +++ b/folly/io/async/VirtualEventBase.h @@ -84,6 +84,10 @@ class VirtualEventBase : public folly::Executor, public folly::TimeoutManager { ]() mutable { f(); })); } + HHWheelTimer& timer() { + return evb_.timer(); + } + void attachTimeoutManager( AsyncTimeout* obj, TimeoutManager::InternalEnum internal) override {