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

Side by Side Diff: base/thread.cc

Issue 1992005: Update dynamic annotations and move them to base/third_party (Closed)
Patch Set: rebased Created 10 years, 7 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
« no previous file with comments | « base/third_party/dynamic_annotations/dynamic_annotations.c ('k') | base/thread_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/thread.h" 5 #include "base/thread.h"
6 6
7 #include "base/dynamic_annotations.h"
8 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
9 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
10 #include "base/thread_local.h" 10 #include "base/thread_local.h"
11 #include "base/waitable_event.h" 11 #include "base/waitable_event.h"
12 12
13 namespace base { 13 namespace base {
14 14
15 // This task is used to trigger the message loop to exit. 15 // This task is used to trigger the message loop to exit.
16 class ThreadQuitTask : public Task { 16 class ThreadQuitTask : public Task {
17 public: 17 public:
18 virtual void Run() { 18 virtual void Run() {
19 MessageLoop::current()->Quit(); 19 MessageLoop::current()->Quit();
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // We can't receive messages anymore. 165 // We can't receive messages anymore.
166 message_loop_ = NULL; 166 message_loop_ = NULL;
167 message_loop_proxy_ = NULL; 167 message_loop_proxy_ = NULL;
168 } 168 }
169 CleanUpAfterMessageLoopDestruction(); 169 CleanUpAfterMessageLoopDestruction();
170 thread_id_ = 0; 170 thread_id_ = 0;
171 } 171 }
172 172
173 } // namespace base 173 } // namespace base
OLDNEW
« no previous file with comments | « base/third_party/dynamic_annotations/dynamic_annotations.c ('k') | base/thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698