Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1173)

Unified Diff: base/thread.h

Issue 18677: Use PlatformThreadId, not int when dealing with thread ids. (Closed)
Patch Set: Addressing comments Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/stats_table.cc ('k') | base/thread_collision_warner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/thread.h
diff --git a/base/thread.h b/base/thread.h
index fd7fea20c861e2debb15dad2d05f80917e8e2a27..13aa35ba743d435e3c176b5647cc76dd5543e95d 100644
--- a/base/thread.h
+++ b/base/thread.h
@@ -102,7 +102,7 @@ class Thread : PlatformThread::Delegate {
PlatformThreadHandle thread_handle() { return thread_; }
// The thread ID.
- int thread_id() const { return thread_id_; }
+ PlatformThreadId thread_id() const { return thread_id_; }
protected:
// Called just prior to starting the message loop
@@ -134,7 +134,7 @@ class Thread : PlatformThread::Delegate {
MessageLoop* message_loop_;
// Our thread's ID.
- int thread_id_;
+ PlatformThreadId thread_id_;
// The name of the thread. Used for debugging purposes.
std::string name_;
« no previous file with comments | « base/stats_table.cc ('k') | base/thread_collision_warner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698