| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // The thread's message loop. Valid only while the thread is alive. Set | 175 // The thread's message loop. Valid only while the thread is alive. Set |
| 176 // by the created thread. | 176 // by the created thread. |
| 177 MessageLoop* message_loop_; | 177 MessageLoop* message_loop_; |
| 178 | 178 |
| 179 // Our thread's ID. | 179 // Our thread's ID. |
| 180 PlatformThreadId thread_id_; | 180 PlatformThreadId thread_id_; |
| 181 | 181 |
| 182 // The name of the thread. Used for debugging purposes. | 182 // The name of the thread. Used for debugging purposes. |
| 183 std::string name_; | 183 std::string name_; |
| 184 | 184 |
| 185 friend class ThreadQuitTask; | 185 friend void ThreadQuitHelper(); |
| 186 | 186 |
| 187 DISALLOW_COPY_AND_ASSIGN(Thread); | 187 DISALLOW_COPY_AND_ASSIGN(Thread); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace base | 190 } // namespace base |
| 191 | 191 |
| 192 #endif // BASE_THREAD_H_ | 192 #endif // BASE_THREAD_H_ |
| OLD | NEW |