Commit 2f974506 authored by Etienne Pierre-doray's avatar Etienne Pierre-doray Committed by Commit Bot

[TaskScheduler]: Document Process::WaitForExitWithTimeout as not considered blocking.

Original CL intention was:
Use ScopedBlockingCallWithBaseSyncPrimitives to annotate sync primitives.

Migrate AssertBaseSyncPrimitivesAllowed() to
ScopedBlockingCallWithBaseSyncPrimitives in base::Process.

Bug: 903957, 905788
Change-Id: Ief5072d7e9b9feaf1ee7b817add26545bf80b78a
Reviewed-on: https://chromium-review.googlesource.com/c/1324418Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#608768}
parent 4c316bae
......@@ -337,6 +337,9 @@ bool Process::WaitForExit(int* exit_code) const {
}
bool Process::WaitForExitWithTimeout(TimeDelta timeout, int* exit_code) const {
// Intentionally avoid instantiating ScopedBlockingCallWithBaseSyncPrimitives.
// In some cases, this function waits on a child Process doing CPU work.
// http://crbug.com/905788
if (!timeout.is_zero())
internal::AssertBaseSyncPrimitivesAllowed();
......
......@@ -181,6 +181,9 @@ bool Process::WaitForExit(int* exit_code) const {
}
bool Process::WaitForExitWithTimeout(TimeDelta timeout, int* exit_code) const {
// Intentionally avoid instantiating ScopedBlockingCallWithBaseSyncPrimitives.
// In some cases, this function waits on a child Process doing CPU work.
// http://crbug.com/905788
if (!timeout.is_zero())
internal::AssertBaseSyncPrimitivesAllowed();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment