Chromium Code Reviews| Index: base/threading/platform_thread_mac.mm |
| diff --git a/base/threading/platform_thread_mac.mm b/base/threading/platform_thread_mac.mm |
| index 7d5906403c7d55d7ba74ad40d25cb52cd9336f64..2bb6bd255da87b9516d8026f208a7575b4eaf204 100644 |
| --- a/base/threading/platform_thread_mac.mm |
| +++ b/base/threading/platform_thread_mac.mm |
| @@ -11,6 +11,7 @@ |
| #include <mach/thread_policy.h> |
| #include "base/logging.h" |
| +#include "base/debug/trace_event.h" |
|
joth
2011/07/26 09:53:17
alpha order
|
| namespace base { |
| @@ -37,6 +38,8 @@ void InitThreading() { |
| // static |
| void PlatformThread::SetName(const char* name) { |
| + base::debug::TraceLog::GetInstance()->SetCurrentThreadName(name); |
| + |
| // pthread_setname_np is only available in 10.6 or later, so test |
| // for it at runtime. |
| int (*dynamic_pthread_setname_np)(const char*); |