summaryrefslogtreecommitdiffstats
path: root/base/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/thread.h')
-rw-r--r--base/thread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/thread.h b/base/thread.h
index 93ba037..fd7fea2 100644
--- a/base/thread.h
+++ b/base/thread.h
@@ -101,6 +101,9 @@ class Thread : PlatformThread::Delegate {
// The native thread handle.
PlatformThreadHandle thread_handle() { return thread_; }
+ // The thread ID.
+ int thread_id() const { return thread_id_; }
+
protected:
// Called just prior to starting the message loop
virtual void Init() {}
@@ -130,7 +133,7 @@ class Thread : PlatformThread::Delegate {
// by the created thread.
MessageLoop* message_loop_;
- // Our thread's ID. Used for debugging purposes.
+ // Our thread's ID.
int thread_id_;
// The name of the thread. Used for debugging purposes.