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

Unified Diff: base/thread.h

Issue 17246: Add V8 bindings for Worker (Part I). (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' 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/scoped_handle_win.h ('k') | webkit/build/JavaScriptCore/SConscript » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/thread.h
===================================================================
--- base/thread.h (revision 8350)
+++ base/thread.h (working copy)
@@ -101,6 +101,9 @@
// 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 @@
// 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.
« no previous file with comments | « base/scoped_handle_win.h ('k') | webkit/build/JavaScriptCore/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698