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

Side by Side Diff: webrtc/rtc_base/messagequeue.cc

Issue 2962303003: Revert "Update includes for webrtc/{base => rtc_base} rename (3/3)" (Closed)
Patch Set: Created 3 years, 5 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/rtc_base/messagequeue.h ('k') | webrtc/rtc_base/messagequeue_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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 #include <algorithm> 10 #include <algorithm>
11 11
12 #include "webrtc/rtc_base/atomicops.h" 12 #include "webrtc/base/atomicops.h"
13 #include "webrtc/rtc_base/checks.h" 13 #include "webrtc/base/checks.h"
14 #include "webrtc/rtc_base/logging.h" 14 #include "webrtc/base/logging.h"
15 #include "webrtc/rtc_base/messagequeue.h" 15 #include "webrtc/base/messagequeue.h"
16 #include "webrtc/rtc_base/stringencode.h" 16 #include "webrtc/base/stringencode.h"
17 #include "webrtc/rtc_base/thread.h" 17 #include "webrtc/base/thread.h"
18 #include "webrtc/rtc_base/trace_event.h" 18 #include "webrtc/base/trace_event.h"
19 19
20 namespace rtc { 20 namespace rtc {
21 namespace { 21 namespace {
22 22
23 const int kMaxMsgLatency = 150; // 150 ms 23 const int kMaxMsgLatency = 150; // 150 ms
24 const int kSlowDispatchLoggingThreshold = 50; // 50 ms 24 const int kSlowDispatchLoggingThreshold = 50; // 50 ms
25 25
26 class SCOPED_LOCKABLE DebugNonReentrantCritScope { 26 class SCOPED_LOCKABLE DebugNonReentrantCritScope {
27 public: 27 public:
28 DebugNonReentrantCritScope(const CriticalSection* cs, bool* locked) 28 DebugNonReentrantCritScope(const CriticalSection* cs, bool* locked)
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 541
542 void MessageQueue::PostFunctorInternal(const Location& posted_from, 542 void MessageQueue::PostFunctorInternal(const Location& posted_from,
543 RunnableData* message_data) { 543 RunnableData* message_data) {
544 // Use static to ensure it outlives this scope. Safe since 544 // Use static to ensure it outlives this scope. Safe since
545 // FunctorPostMessageHandler keeps no state. 545 // FunctorPostMessageHandler keeps no state.
546 static FunctorPostMessageHandler handler; 546 static FunctorPostMessageHandler handler;
547 Post(posted_from, &handler, 0, message_data); 547 Post(posted_from, &handler, 0, message_data);
548 } 548 }
549 549
550 } // namespace rtc 550 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/rtc_base/messagequeue.h ('k') | webrtc/rtc_base/messagequeue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698