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

Side by Side Diff: base/thread.h

Issue 1660: Move a bunch of code from the old to new TLS interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/message_loop.cc ('k') | base/thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_THREAD_H_ 5 #ifndef BASE_THREAD_H_
6 #define BASE_THREAD_H_ 6 #define BASE_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // The thread's message loop. Valid only while the thread is alive. Set 129 // The thread's message loop. Valid only while the thread is alive. Set
130 // by the created thread. 130 // by the created thread.
131 MessageLoop* message_loop_; 131 MessageLoop* message_loop_;
132 132
133 // Our thread's ID. Used for debugging purposes. 133 // Our thread's ID. Used for debugging purposes.
134 int thread_id_; 134 int thread_id_;
135 135
136 // The name of the thread. Used for debugging purposes. 136 // The name of the thread. Used for debugging purposes.
137 std::string name_; 137 std::string name_;
138 138
139 static TLSSlot tls_index_;
140
141 friend class ThreadQuitTask; 139 friend class ThreadQuitTask;
142 140
143 DISALLOW_COPY_AND_ASSIGN(Thread); 141 DISALLOW_COPY_AND_ASSIGN(Thread);
144 }; 142 };
145 143
146 } // namespace base 144 } // namespace base
147 145
148 #endif // BASE_THREAD_H_ 146 #endif // BASE_THREAD_H_
149 147
OLDNEW
« no previous file with comments | « base/message_loop.cc ('k') | base/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698