stop in same thread
authorDave Watson <davejwatson@fb.com>
Wed, 1 Apr 2015 16:28:06 +0000 (09:28 -0700)
committerafrind <afrind@fb.com>
Thu, 2 Apr 2015 19:02:05 +0000 (12:02 -0700)
commitb2901a613fe98276fcbf265ed22f7fe8282cf673
tree1a40119b361593f73df95f10221f657e25ec8810
parent3fc4180172fb801a2be7522fe64a0f7746ce71b3
stop in same thread

Summary: In a couple places in ServerBootstrap there is code that needs to run in the EB, but if we are already in the EB, it's fine to run it inline.  Maybe this should be a method on EB directly?  There is runInEventBaseThreadAndWait(), but it explicitly disallows this usage.

Test Plan: used in D1942242, deadlocks without this, since stop() was called in the same eb

Reviewed By: yfeldblum@fb.com

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

FB internal diff: D1947581

Signature: t1:1947581:1427831021:d1d08ff9a4a00501d6be60670709fcb17af04134
folly/wangle/bootstrap/ServerBootstrap.cpp
folly/wangle/bootstrap/ServerBootstrap.h