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

Unified Diff: base/threading/worker_pool_posix.cc

Issue 1845753006: Don't create redundant ThreadData for Worker Threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: base/threading/worker_pool_posix.cc
diff --git a/base/threading/worker_pool_posix.cc b/base/threading/worker_pool_posix.cc
index 53ae4e69627807b209618834104fecf70ed65fc9..043e5d0be6a8a7b954e9ead826f6cc5277b417fd 100644
--- a/base/threading/worker_pool_posix.cc
+++ b/base/threading/worker_pool_posix.cc
@@ -80,7 +80,7 @@ void WorkerThread::ThreadMain() {
const std::string name = base::StringPrintf("%s/%d", name_prefix_.c_str(),
PlatformThread::CurrentId());
// Note |name.c_str()| must remain valid for for the whole life of the thread.
- PlatformThread::SetName(name);
+ PlatformThread::SetName(name, true);
for (;;) {
PendingTask pending_task = pool_->WaitForTask();

Powered by Google App Engine
This is Rietveld 408576698