Commit a52051e6 authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

[base] Fix typo in task_environment.cc comment

TBR=fdoray@chromium.org

Change-Id: Ic54f6e6e3935ec0e562da95eb76fd2d49c1b7b64
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2560808Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#831115}
parent 65e69eea
...@@ -309,7 +309,7 @@ class TaskEnvironment::MockTimeDomain : public sequence_manager::TimeDomain, ...@@ -309,7 +309,7 @@ class TaskEnvironment::MockTimeDomain : public sequence_manager::TimeDomain,
// Thread B : Complete enqueue of task U. // Thread B : Complete enqueue of task U.
// Thread A : FastForwardToNextTaskOrCap() => must stay at 300ms and run // Thread A : FastForwardToNextTaskOrCap() => must stay at 300ms and run
// U, not go back to 120ms. // U, not go back to 120ms.
// Hence we need std::max() to protect again this because construction // Hence we need std::max() to protect against this because construction
// and enqueuing isn't atomic in time (LazyNow support in // and enqueuing isn't atomic in time (LazyNow support in
// base/task/thread_pool could help). // base/task/thread_pool could help).
now_ticks_ = std::max(now_ticks_, *next_task_time); now_ticks_ = std::max(now_ticks_, *next_task_time);
......
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