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

Side by Side Diff: webrtc/rtc_base/task_queue.h

Issue 3004873002: Delete static method TaskQueue::IsCurrent. (Closed)
Patch Set: Created 3 years, 3 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 | « webrtc/common_video/incoming_video_stream.cc ('k') | webrtc/rtc_base/task_queue_gcd.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 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 LOW, 162 LOW,
163 }; 163 };
164 164
165 explicit TaskQueue(const char* queue_name, 165 explicit TaskQueue(const char* queue_name,
166 Priority priority = Priority::NORMAL); 166 Priority priority = Priority::NORMAL);
167 ~TaskQueue(); 167 ~TaskQueue();
168 168
169 static TaskQueue* Current(); 169 static TaskQueue* Current();
170 170
171 // Used for DCHECKing the current queue. 171 // Used for DCHECKing the current queue.
172 static bool IsCurrent(const char* queue_name);
173 bool IsCurrent() const; 172 bool IsCurrent() const;
174 173
175 // TODO(tommi): For better debuggability, implement RTC_FROM_HERE. 174 // TODO(tommi): For better debuggability, implement RTC_FROM_HERE.
176 175
177 // Ownership of the task is passed to PostTask. 176 // Ownership of the task is passed to PostTask.
178 void PostTask(std::unique_ptr<QueuedTask> task); 177 void PostTask(std::unique_ptr<QueuedTask> task);
179 void PostTaskAndReply(std::unique_ptr<QueuedTask> task, 178 void PostTaskAndReply(std::unique_ptr<QueuedTask> task,
180 std::unique_ptr<QueuedTask> reply, 179 std::unique_ptr<QueuedTask> reply,
181 TaskQueue* reply_queue); 180 TaskQueue* reply_queue);
182 void PostTaskAndReply(std::unique_ptr<QueuedTask> task, 181 void PostTaskAndReply(std::unique_ptr<QueuedTask> task,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 class Impl; 265 class Impl;
267 const scoped_refptr<Impl> impl_; 266 const scoped_refptr<Impl> impl_;
268 #endif 267 #endif
269 268
270 RTC_DISALLOW_COPY_AND_ASSIGN(TaskQueue); 269 RTC_DISALLOW_COPY_AND_ASSIGN(TaskQueue);
271 }; 270 };
272 271
273 } // namespace rtc 272 } // namespace rtc
274 273
275 #endif // WEBRTC_RTC_BASE_TASK_QUEUE_H_ 274 #endif // WEBRTC_RTC_BASE_TASK_QUEUE_H_
OLDNEW
« no previous file with comments | « webrtc/common_video/incoming_video_stream.cc ('k') | webrtc/rtc_base/task_queue_gcd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698