EventBase::runInEventLoopThreadAndWait.
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 2 Feb 2015 19:37:23 +0000 (11:37 -0800)
committerAndrew Cox <andrewcox@fb.com>
Wed, 4 Feb 2015 20:58:31 +0000 (12:58 -0800)
commit1219e49411f20b15f0d577375891d5d20a20e254
tree851c84965b8930b0a75078570c4ef973bc3a0ef6
parent440b7da3e22fb94656e6ba0f91aa42c9591fe776
EventBase::runInEventLoopThreadAndWait.

Summary:
[Folly] EventBase::runInEventLoopThreadAndWait.

Useful for when some code needs to be run in the event loop thread, but another thread needs to trigger the code and then wait for it to be done.

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

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, folly-diffs@, brettp, dougw

FB internal diff: D1810764

Signature: t1:1810764:1422900654:7ff0aa7feb2792266f620b344cf8a1110a09f7ef
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h
folly/io/async/test/EventBaseTest.cpp