OLD | NEW |
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 Loading... |
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 |
OLD | NEW |