API for getTimeoutManager
authorHitesh Khandelwal <hitesh@fb.com>
Thu, 31 Jul 2014 21:47:46 +0000 (14:47 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 14 Aug 2014 18:49:03 +0000 (11:49 -0700)
Test Plan: Tested end-to-end with D1342452

Reviewed By: mshneer@fb.com

Subscribers: alandau, bmatheny

FB internal diff: D1470814

Tasks: 2682011

folly/io/async/AsyncTimeout.h

index bf1947d0883e91e35bc6447a4e386d27f7392a26..1385c5d28c141acad04249a9db95113686532caa 100644 (file)
@@ -138,6 +138,10 @@ class AsyncTimeout : private boost::noncopyable {
   void detachTimeoutManager();
   void detachEventBase();
 
+  const TimeoutManager* getTimeoutManager() {
+    return timeoutManager_;
+  }
+
   /**
    * Returns the internal handle to the event
    */