wangle::getEventBase()
[folly.git] / folly / wangle / concurrent / GlobalExecutor.cpp
index 36a82155ee1252a29111d05b8cd5f1464692c307..9d6aca40066610c5baf61262b67637ab9952303b 100644 (file)
@@ -110,6 +110,10 @@ std::shared_ptr<IOExecutor> getIOExecutor() {
       globalIOExecutorLock);
 }
 
+EventBase* getEventBase() {
+  return getIOExecutor()->getEventBase();
+}
+
 void setIOExecutor(std::shared_ptr<IOExecutor> executor) {
   setExecutor(
       std::move(executor),