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

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

Issue 1966733002: Move base/thread_task_runner_handle.h to base/threading/thread_task_runner_handle.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GYP/GN Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
danakj 2016/05/10 20:17:47 ditto
gab 2016/05/10 21:44:52 Done.
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_task_runner_handle.h" 5 #include "base/thread_task_runner_handle.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 lazy_tls_ptr.Pointer()->Set(this); 43 lazy_tls_ptr.Pointer()->Set(this);
44 } 44 }
45 45
46 ThreadTaskRunnerHandle::~ThreadTaskRunnerHandle() { 46 ThreadTaskRunnerHandle::~ThreadTaskRunnerHandle() {
47 DCHECK(task_runner_->BelongsToCurrentThread()); 47 DCHECK(task_runner_->BelongsToCurrentThread());
48 DCHECK_EQ(lazy_tls_ptr.Pointer()->Get(), this); 48 DCHECK_EQ(lazy_tls_ptr.Pointer()->Get(), this);
49 lazy_tls_ptr.Pointer()->Set(nullptr); 49 lazy_tls_ptr.Pointer()->Set(nullptr);
50 } 50 }
51 51
52 } // namespace base 52 } // namespace base
OLDNEW
« base/threading/thread_task_runner_handle.h ('K') | « base/threading/thread_task_runner_handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698