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

Side by Side Diff: base/task_scheduler/scheduler_lock_impl.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/task_scheduler/scheduler_lock_impl.h" 5 #include "base/task_scheduler/scheduler_lock_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <unordered_map> 8 #include <unordered_map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 void SchedulerLockImpl::Release() { 130 void SchedulerLockImpl::Release() {
131 lock_.Release(); 131 lock_.Release();
132 g_safe_acquisition_tracker.Get().RecordRelease(this); 132 g_safe_acquisition_tracker.Get().RecordRelease(this);
133 } 133 }
134 134
135 void SchedulerLockImpl::AssertAcquired() const { 135 void SchedulerLockImpl::AssertAcquired() const {
136 lock_.AssertAcquired(); 136 lock_.AssertAcquired();
137 } 137 }
138 138
139 scoped_ptr<ConditionVariable> SchedulerLockImpl::CreateConditionVariable() { 139 std::unique_ptr<ConditionVariable>
140 return scoped_ptr<ConditionVariable>(new ConditionVariable(&lock_)); 140 SchedulerLockImpl::CreateConditionVariable() {
141 return std::unique_ptr<ConditionVariable>(new ConditionVariable(&lock_));
141 } 142 }
142 143
143 } // namespace internal 144 } // namespace internal
144 } // base 145 } // base
OLDNEW
« no previous file with comments | « base/task_scheduler/scheduler_lock_impl.h ('k') | base/task_scheduler/scheduler_worker_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698