Get access to EventBaseManager object
authorYuri Putivsky <putivsky@fb.com>
Tue, 31 Mar 2015 06:39:58 +0000 (23:39 -0700)
committerafrind <afrind@fb.com>
Thu, 2 Apr 2015 19:01:02 +0000 (12:01 -0700)
Summary: as title

Test Plan: run unit tests

Reviewed By: yfeldblum@fb.com

Subscribers: ming, fugalh, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D1955074

folly/wangle/concurrent/IOThreadPoolExecutor.cpp
folly/wangle/concurrent/IOThreadPoolExecutor.h

index 4ac0b79b7167a6e8805a433de5cc40c48e8035bf..f8a68e25115d1a95ece7d75c670c497a1215b0b5 100644 (file)
@@ -129,6 +129,10 @@ EventBase* IOThreadPoolExecutor::getEventBase(
   return nullptr;
 }
 
+EventBaseManager* IOThreadPoolExecutor::getEventBaseManager() {
+  return eventBaseManager_;
+}
+
 std::shared_ptr<ThreadPoolExecutor::Thread>
 IOThreadPoolExecutor::makeThread() {
   return std::make_shared<IOThread>(this);
index 00aaa4779c6bc28f1ec535a6e90902a6a54b4283..b298ccae9000814f152f1b830f0718ae3cacc5db 100644 (file)
@@ -44,6 +44,8 @@ class IOThreadPoolExecutor : public ThreadPoolExecutor, public IOExecutor {
 
   static EventBase* getEventBase(ThreadPoolExecutor::ThreadHandle*);
 
+  EventBaseManager* getEventBaseManager();
+
  private:
   struct FOLLY_ALIGN_TO_AVOID_FALSE_SHARING IOThread : public Thread {
     IOThread(IOThreadPoolExecutor* pool)