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

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

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/threading/simple_thread_unittest.cc ('k') | base/threading/thread_local_unittest.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-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 #include "base/threading/thread.h" 5 #include "base/threading/thread.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 8 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
9 #include "base/threading/thread_local.h" 9 #include "base/threading/thread_local.h"
10 #include "base/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
11 11
12 namespace base { 12 namespace base {
13 13
14 // This task is used to trigger the message loop to exit. 14 // This task is used to trigger the message loop to exit.
15 class ThreadQuitTask : public Task { 15 class ThreadQuitTask : public Task {
16 public: 16 public:
17 virtual void Run() { 17 virtual void Run() {
18 MessageLoop::current()->Quit(); 18 MessageLoop::current()->Quit();
19 Thread::SetThreadWasQuitProperly(true); 19 Thread::SetThreadWasQuitProperly(true);
20 } 20 }
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 // We can't receive messages anymore. 172 // We can't receive messages anymore.
173 message_loop_ = NULL; 173 message_loop_ = NULL;
174 message_loop_proxy_ = NULL; 174 message_loop_proxy_ = NULL;
175 } 175 }
176 CleanUpAfterMessageLoopDestruction(); 176 CleanUpAfterMessageLoopDestruction();
177 thread_id_ = kInvalidThreadId; 177 thread_id_ = kInvalidThreadId;
178 } 178 }
179 179
180 } // namespace base 180 } // namespace base
OLDNEW
« no previous file with comments | « base/threading/simple_thread_unittest.cc ('k') | base/threading/thread_local_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698