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

Side by Side Diff: base/threading/thread.h

Issue 8653006: Remove custom Task implementations in base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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/synchronization/waitable_event_watcher_posix.cc ('k') | base/threading/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) 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
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_
OLDNEW
« no previous file with comments | « base/synchronization/waitable_event_watcher_posix.cc ('k') | base/threading/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698