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

Unified Diff: base/threading/platform_thread.h

Issue 1845753006: Don't create redundant ThreadData for Worker Threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment Created 4 years, 7 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/platform_thread_android.cc » ('j') | base/threading/platform_thread_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread.h
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index 72da93bf56d4fc984c35c5f49ef2a69fd475be00..60b871e5835c5aee91db13ae54d5d6297fdc6d1d 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -142,9 +142,9 @@ class BASE_EXPORT PlatformThread {
// Sleeps for the specified duration.
static void Sleep(base::TimeDelta duration);
- // Sets the thread name visible to debuggers/tools. This has no effect
- // otherwise.
- static void SetName(const std::string& name);
+ // Sets the thread name visible to debuggers/tools. This will try to
+ // initialize the context for current thread unless it's a WorkerThread.
+ static void SetName(const std::string& name, bool is_worker_thread = false);
// Gets the thread name, if previously set by SetName.
static const char* GetName();
« no previous file with comments | « no previous file | base/threading/platform_thread_android.cc » ('j') | base/threading/platform_thread_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698