Use Baton (again) in EventBase::runInEventBaseThreadAndWait
authorGiuseppe Ottaviano <ott@fb.com>
Tue, 11 Jul 2017 17:21:38 +0000 (10:21 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 11 Jul 2017 17:26:44 +0000 (10:26 -0700)
commit6e9044430269068cc997e4077a366b5a1628c3af
tree636ebe636a5126c063fc72248cd5518e4e7ddd68
parent9d23df15330c1c21c4719bf0f05c04b21c5e6bb3
Use Baton (again) in EventBase::runInEventBaseThreadAndWait

Summary:
`Baton` is more lightweight than a mutex+condition variable, and the code is much simpler. This was actually the original implementation, but the dependency had to be dropped because `Baton` was unsupported on some architectures. That is not a problem anymore.

Also reorganize the includes to follow the conventions.

Reviewed By: andriigrynenko, yfeldblum

Differential Revision: D5396631

fbshipit-source-id: d782cf271eb35723aaeb3c372e1c1dafeaaf0f0a
folly/io/async/EventBase.cpp