From f79de56743edf4a073b480841f1e086df56b1c77 Mon Sep 17 00:00:00 2001 From: Andrii Grynenko Date: Fri, 12 Feb 2016 14:34:00 -0800 Subject: [PATCH] Convert Thrift1(2)RequestDispatcher::sendMessage() Summary:This depends on D2897095. The main goal here is to start moving onRequestSuccess and onRequestFailure calls higher in the stack. Reviewed By: mmcduff Differential Revision: D2899959 fb-gh-sync-id: 4e074c2d734f88f5be56000095b892c6d47c0dcc shipit-source-id: 4e074c2d734f88f5be56000095b892c6d47c0dcc --- folly/experimental/fibers/FiberManagerMap.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/folly/experimental/fibers/FiberManagerMap.cpp b/folly/experimental/fibers/FiberManagerMap.cpp index 6ce1237a..851a25f4 100644 --- a/folly/experimental/fibers/FiberManagerMap.cpp +++ b/folly/experimental/fibers/FiberManagerMap.cpp @@ -168,7 +168,9 @@ void EventBaseOnDestructionCallback::runLoopCallback() noexcept { DCHECK(fm.get() != nullptr); ThreadLocalCache::erase(evb_); - fm->loopUntilNoReady(); + while (fm->hasTasks()) { + evb_.loopOnce(); + } delete this; } -- 2.34.1