EventBase::runImediatelyOrRunInEventBaseThreadAndWait.
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 31 Mar 2015 01:17:31 +0000 (18:17 -0700)
committerafrind <afrind@fb.com>
Thu, 2 Apr 2015 19:00:46 +0000 (12:00 -0700)
commitcb2fe8d01f9b3eb746a852cc96bc930287d95f68
tree649e2cc7545569a3e0928cda12f71ca2356be011
parent0ad80e7c9972eeebf4f5e32b98ed627e00fd978b
EventBase::runImediatelyOrRunInEventBaseThreadAndWait.

Summary:
[Folly] EventBase::runImediatelyOrRunInEventBaseThreadAndWait.

When you have code that you need to run in the event loop and wait for it to finish, and you yourself might be in the event loop but might be in another thread instead.

Test Plan:
Unit tests:
* `folly/io/async/test/EventBaseTest.cpp`.

Reviewed By: davejwatson@fb.com

Subscribers: folly-diffs@, yfeldblum, chalfant, agallagher, njormrod, ldbrandy, brettp, dougw

FB internal diff: D1953110

Signature: t1:1953110:1427751076:ad2c9f4d5b65ef952cba94b06be887672ee44583
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h
folly/io/async/test/EventBaseTest.cpp