| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |