Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3366)

Unified Diff: base/threading/sequenced_worker_pool.cc

Issue 2801073005: [reland] Do not block in SimpleThread::Start(). (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/threading/simple_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/sequenced_worker_pool.cc
diff --git a/base/threading/sequenced_worker_pool.cc b/base/threading/sequenced_worker_pool.cc
index 64f1bbd0bc563bbf3fd67de3d8fc03f76a8dba9d..a0d936b38fe4072aa0b201b22ecb53d0cd6656f2 100644
--- a/base/threading/sequenced_worker_pool.cc
+++ b/base/threading/sequenced_worker_pool.cc
@@ -985,7 +985,7 @@ void SequencedWorkerPool::Inner::ThreadLoop(Worker* this_worker) {
DCHECK(thread_being_created_);
thread_being_created_ = false;
auto result = threads_.insert(
- std::make_pair(this_worker->tid(), WrapUnique(this_worker)));
+ std::make_pair(PlatformThread::CurrentId(), WrapUnique(this_worker)));
DCHECK(result.second);
while (true) {
« no previous file with comments | « no previous file | base/threading/simple_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698