summaryrefslogtreecommitdiffstats
path: root/base/platform_thread.h
diff options
context:
space:
mode:
authordeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-25 13:54:18 +0000
committerdeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-25 13:54:18 +0000
commit7d0f9445f4ffb50dc1d72bc2f5ce329ccfec7cad (patch)
tree668755bb0e584a311f5c22e24f1c48e0e47d0c56 /base/platform_thread.h
parent302bdc13a9baebb21894673e7674f4e0361cfe97 (diff)
downloadchromium_src-7d0f9445f4ffb50dc1d72bc2f5ce329ccfec7cad.zip
chromium_src-7d0f9445f4ffb50dc1d72bc2f5ce329ccfec7cad.tar.gz
chromium_src-7d0f9445f4ffb50dc1d72bc2f5ce329ccfec7cad.tar.bz2
Make PlatformThread::SetName operate only on the current thread.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1306 0039d316-1c4b-4281-b951-d872f2087c98
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.