projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wangle::getEventBase()
[folly.git]
/
folly
/
wangle
/
concurrent
/
GlobalExecutor.cpp
diff --git
a/folly/wangle/concurrent/GlobalExecutor.cpp
b/folly/wangle/concurrent/GlobalExecutor.cpp
index 36a82155ee1252a29111d05b8cd5f1464692c307..9d6aca40066610c5baf61262b67637ab9952303b 100644
(file)
--- a/
folly/wangle/concurrent/GlobalExecutor.cpp
+++ b/
folly/wangle/concurrent/GlobalExecutor.cpp
@@
-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),