• fdoray's avatar
    TaskScheduler: Add TaskTraits::WithWait(). · 19509c12
    fdoray authored
    WithWait() tasks are allowed to wait on other things than file I/O. In
    particular, they may wait on a WaitableEvent or a ConditionVariable, join a
    thread or a process, or make a blocking system call that doesn't involve
    interactions with the file system.
    
    In upcoming CLs, this trait will be used in scheduling decisions (more
    details on the bug).
    
    BUG=669247
    
    Review-Url: https://codereview.chromium.org/2531663003
    Cr-Commit-Position: refs/heads/master@{#435054}
    19509c12
task_traits.cc 2.18 KB