commit | 2d03b5b49af582ba9eb639653651be451974e1d4 | [log] [tgz] |
---|---|---|
author | Carlos Caballero <carlscab@google.com> | Tue Mar 19 15:04:30 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Mar 19 15:04:30 2019 |
tree | 24579744a6d90c783b1934e608919e87f87f7990 | |
parent | 4197d3af6e42aa72076d6051153a644f3df62dd5 [diff] |
Reduce scope of lock in TaskQueueImpl We can safely reduce the scope of the lock given that task_poster_->ShutdownAndWaitForZeroOperations() will make sure that there will be no more post task calls. This also addresses a CHECK fail that would happen if the unregister would trigger a ScheduleWork, as we would hold the any_thread_lock_ in TaskQueueImpl during the ScheduleWork call. Bug: 943009 Change-Id: I633676ead5f81d41f5a1c7defc31bb507c53f377 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1529093 Commit-Queue: Carlos Caballero <carlscab@google.com> Reviewed-by: Alexander Timin <altimin@chromium.org> Reviewed-by: Alex Clarke <alexclarke@chromium.org> Cr-Commit-Position: refs/heads/master@{#641871}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .