• Yedidya Feldblum's avatar
    EventBase::runInEventLoopThreadAndWait. · 1219e494
    Yedidya Feldblum authored
    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
    1219e494
EventBase.cpp 23.8 KB