summaryrefslogtreecommitdiffstats
path: root/base/platform_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/platform_thread.h')
-rw-r--r--base/platform_thread.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/base/platform_thread.h b/base/platform_thread.h
index edb2ddc..a999e8d 100644
--- a/base/platform_thread.h
+++ b/base/platform_thread.h
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// WARNING: You should *NOT* be using this class directly. PlatformThread is
+// the low-level platform-specific abstraction to the OS's threading interface.
+// You should instead be using a message-loop driven Thread, see thread.h.
+
#ifndef BASE_PLATFORM_THREAD_H_
#define BASE_PLATFORM_THREAD_H_
@@ -31,9 +35,7 @@ class PlatformThread {
static void Sleep(int duration_ms);
// Sets the thread name visible to a debugger. This has no effect otherwise.
- // To set the name of the current thread, pass PlatformThread::CurrentId() as
- // the thread_id parameter.
- static void SetName(int thread_id, const char* name);
+ static void SetName(const char* name);
// Implement this interface to run code on a background thread. Your
// ThreadMain method will be called on the newly created thread.