Commit 853adb4f authored by Scott Michelson's avatar Scott Michelson Committed by Facebook Github Bot

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
parent 3e107c2e
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment