forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate TPM initialization from WorkerPool to TaskScheduler.
WorkerPool is being deprecated in favor of TaskScheduler. NSS functions may reenter //net via extension hooks. If the reentered code needs to synchronously wait for a task to run but the thread pool in which that task must run doesn't have enough threads to schedule it, a deadlock occurs. To prevent that, a base::ScopedBlockingCall increments the thread pool capacity for the duration of the TPM initialization. Bug: 659191 Change-Id: I4d50de7d5bcaad8d91293a535fbd7408fe7a83da Reviewed-on: https://chromium-review.googlesource.com/635956 Reviewed-by: Ryan Sleevi <rsleevi@chromium.org> Commit-Queue: Francois Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#497776}
- Loading branch information
Showing
1 changed file
with
29 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters