summaryrefslogtreecommitdiffstats
path: root/base/platform_thread_win.cc
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_win.cc
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_win.cc')
-rw-r--r--base/platform_thread_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/platform_thread_win.cc b/base/platform_thread_win.cc
index 7b62d8e..00efdc1 100644
--- a/base/platform_thread_win.cc
+++ b/base/platform_thread_win.cc
@@ -47,11 +47,11 @@ void PlatformThread::Sleep(int duration_ms) {
}
// static
-void PlatformThread::SetName(int thread_id, const char* name) {
+void PlatformThread::SetName(const char* name) {
THREADNAME_INFO info;
info.dwType = 0x1000;
info.szName = name;
- info.dwThreadID = thread_id;
+ info.dwThreadID = CurrentId();
info.dwFlags = 0;
__try {