projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
support getting timer from eventbase
[folly.git]
/
folly
/
io
/
async
/
VirtualEventBase.h
diff --git
a/folly/io/async/VirtualEventBase.h
b/folly/io/async/VirtualEventBase.h
index e18cffd4db2efcee3a7a3f98d927a29a61605166..ebe8118279e57e69b886cfaad52a35b40298bc8f 100644
(file)
--- 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 {