From 853adb4fb8812b65e360dc77ae14f6013a19119f Mon Sep 17 00:00:00 2001 From: Scott Michelson Date: Fri, 2 Dec 2016 11:48:48 -0800 Subject: [PATCH] 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 --- folly/io/async/VirtualEventBase.h | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.34.1