Introduce new thread restrictions API.
Benefits of the new API: - Naming consistent with TaskTraits. - Separate friend lists for: - Allow blocking - Allow //base sync primitives in a scope that allows blocking - Allow //base sync primitives in a scope that doesn't allow blocking - SetIOAllowed(true) and SetWaitAllowed(true) are replaced with ScopedAllow* classes. Design doc: https://docs.google.com/document/d/1zRg0P_bQYE8Oc5x5Shrd4CIkIevPiMBzxgq6awRrt-A/edit?usp=sharing Bug: 766678 Change-Id: I0b2217f19562a2c7f1b08ca92a0f474e90ac4548 Reviewed-on: https://chromium-review.googlesource.com/672664 Commit-Queue: Francois Doray <fdoray@chromium.org> Reviewed-by:Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#504053}
Showing
Please register or sign in to comment