summaryrefslogtreecommitdiffstats
path: root/base/thread.h
diff options
context:
space:
mode:
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 23:48:34 +0000
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 23:48:34 +0000
commit9257d0132435d1248ca586e878ee67b1b8dcdb56 (patch)
tree5a6f4164d9f25dc7f0f6b0e83b81c37491141b39 /base/thread.h
parenta1a61172ee9e1c59f257c4c8c49d4b9eb4c046e9 (diff)
downloadchromium_src-9257d0132435d1248ca586e878ee67b1b8dcdb56.zip
chromium_src-9257d0132435d1248ca586e878ee67b1b8dcdb56.tar.gz
chromium_src-9257d0132435d1248ca586e878ee67b1b8dcdb56.tar.bz2
Add V8 bindings for Worker.
Review URL: http://codereview.chromium.org/17246 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8414 0039d316-1c4b-4281-b951-d872f2087c98
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.