diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-21 09:46:32 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-21 09:46:32 +0000 |
commit | e9ba26d8303272f6a4a75b53ebf4b96ae8df05f6 (patch) | |
tree | 6d3fee93c5775d976bc2d345e955bc395241d8fe /chrome/renderer | |
parent | 1a3ebe10ead2ca99d2beb45b9ec65a2863406184 (diff) | |
download | chromium_src-e9ba26d8303272f6a4a75b53ebf4b96ae8df05f6.zip chromium_src-e9ba26d8303272f6a4a75b53ebf4b96ae8df05f6.tar.gz chromium_src-e9ba26d8303272f6a4a75b53ebf4b96ae8df05f6.tar.bz2 |
Port the Thread class properly to Mac and Linux. This involved porting
PlatformThread and creating an API on PlatformThread to create a native thread
and later join with it. I also made a few other tweaks to PlatformThread, such
as eliminating the Current() method which appears to be unused. The
operator==() is also unused, so I killed it as well.
I made a few other miscellaneous cleanups and adjustments.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/renderer_main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc index b47b1ff..9c740b9 100644 --- a/chrome/renderer/renderer_main.cc +++ b/chrome/renderer/renderer_main.cc @@ -30,6 +30,7 @@ #include "base/command_line.h" #include "base/message_loop.h" #include "base/path_service.h" +#include "base/platform_thread.h" #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_counters.h" #include "chrome/common/chrome_switches.h" @@ -72,7 +73,7 @@ int RendererMain(CommandLine &parsed_command_line, int show_command, StatsScope<StatsCounterTimer> startup_timer(chrome::Counters::renderer_main()); - Thread::SetThreadName("Chrome_RendererMain", GetCurrentThreadId()); + PlatformThread::SetName(PlatformThread::CurrentId(), "Chrome_RendererMain"); CoInitialize(NULL); |