• Etienne Pierre-doray's avatar
    [TaskScheduler]: Add assertions for ScopedBlockingCall. · 210153b9
    Etienne Pierre-doray authored
    This CL adds assertions in ScopedBlockingCall.
    To distinguish between blocking and sync primitive assertions, a new class
    was added, ScopedBlockingCallWithBaseSyncPrimitives. Usages of
    ScopedBlockingCall were replaced by ScopedBlockingCallWithBaseSyncPrimitives
    when appropriate.
    Corresponding assertions were added (AssertBlockingAllowed and AssertBaseSyncPrimitivesAllowed)
    in both ScopedBlockingCall and ScopedBlockingCallWithBaseSyncPrimitives.
    In the future, either ScopedBlockingCall or ScopedBlockingCallWithBaseSyncPrimitives
    will be used to mark all blocking tasks.
    
    Bug: 874080
    Change-Id: I8277436d4dd25dedb47d6fcdacc45f3905397647
    Reviewed-on: https://chromium-review.googlesource.com/1178326Reviewed-by: default avatarPavol Marko <pmarko@chromium.org>
    Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
    Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#586297}
    210153b9
waitable_event_win.cc 5.62 KB