Index: base/threading/platform_thread.h |
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h |
index 653961ddfae05b34ddbf3def5fbe91f20e523c51..69a2b0d63895d84a09460f585db7439414f730cb 100644 |
--- a/base/threading/platform_thread.h |
+++ b/base/threading/platform_thread.h |
@@ -89,6 +89,10 @@ class PlatformThreadHandle { |
id_(id) { |
} |
+ PlatformThreadId id() const { |
+ return id_; |
+ } |
+ |
bool is_equal(const PlatformThreadHandle& other) const { |
return handle_ == other.handle_; |
} |
@@ -156,9 +160,8 @@ class BASE_EXPORT PlatformThread { |
static void Sleep(base::TimeDelta duration); |
// Sets the thread name visible to debuggers/tools. This has no effect |
- // otherwise. This name pointer is not copied internally. Thus, it must stay |
- // valid until the thread ends. |
- static void SetName(const char* name); |
+ // otherwise. |
+ static void SetName(const std::string& name); |
// Gets the thread name, if previously set by SetName. |
static const char* GetName(); |