• Dave Watson's avatar
    Ensure getVia(eventbase) does not busy wait · 62cc0672
    Dave Watson authored
    Summary:
    Currently, getVia(eventbase) will busy wait if no work is scheduled on the event base.
    
    Tweak the DrivableExecutor API a bit to support sleeping/wakeups.
    There was already a similar fix for the only other existing DrivableExecutor, the ManualExecutor, in
    D2906858.
    
    Reviewed By: andriigrynenko
    
    Differential Revision: D3613954
    
    fbshipit-source-id: 9ff9f2e010040d9886fdf51a665e3afabbff57c0
    62cc0672
Future-inl.h 38.8 KB