[TaskScheduler]: Add assertions for ScopedBlockingCall.
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:Pavol Marko <pmarko@chromium.org> Reviewed-by:
Gabriel Charette <gab@chromium.org> Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org> Cr-Commit-Position: refs/heads/master@{#586297}
Showing
Please register or sign in to comment