| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 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 |
| 11 #include "webrtc/base/sequenced_task_checker_impl.h" | 11 #include "webrtc/rtc_base/sequenced_task_checker_impl.h" |
| 12 | 12 |
| 13 #if defined(WEBRTC_MAC) | 13 #if defined(WEBRTC_MAC) |
| 14 #include <dispatch/dispatch.h> | 14 #include <dispatch/dispatch.h> |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #include "webrtc/base/platform_thread.h" | 17 #include "webrtc/rtc_base/platform_thread.h" |
| 18 #include "webrtc/base/sequenced_task_checker.h" | 18 #include "webrtc/rtc_base/sequenced_task_checker.h" |
| 19 #include "webrtc/base/task_queue.h" | 19 #include "webrtc/rtc_base/task_queue.h" |
| 20 | 20 |
| 21 namespace rtc { | 21 namespace rtc { |
| 22 | 22 |
| 23 SequencedTaskCheckerImpl::SequencedTaskCheckerImpl() | 23 SequencedTaskCheckerImpl::SequencedTaskCheckerImpl() |
| 24 : attached_(true), valid_queue_(TaskQueue::Current()) {} | 24 : attached_(true), valid_queue_(TaskQueue::Current()) {} |
| 25 | 25 |
| 26 SequencedTaskCheckerImpl::~SequencedTaskCheckerImpl() {} | 26 SequencedTaskCheckerImpl::~SequencedTaskCheckerImpl() {} |
| 27 | 27 |
| 28 bool SequencedTaskCheckerImpl::CalledSequentially() const { | 28 bool SequencedTaskCheckerImpl::CalledSequentially() const { |
| 29 QueueId current_queue = TaskQueue::Current(); | 29 QueueId current_queue = TaskQueue::Current(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 54 | 54 |
| 55 SequencedTaskCheckerScope::SequencedTaskCheckerScope( | 55 SequencedTaskCheckerScope::SequencedTaskCheckerScope( |
| 56 const SequencedTaskChecker* checker) { | 56 const SequencedTaskChecker* checker) { |
| 57 RTC_DCHECK(checker->CalledSequentially()); | 57 RTC_DCHECK(checker->CalledSequentially()); |
| 58 } | 58 } |
| 59 | 59 |
| 60 SequencedTaskCheckerScope::~SequencedTaskCheckerScope() {} | 60 SequencedTaskCheckerScope::~SequencedTaskCheckerScope() {} |
| 61 | 61 |
| 62 } // namespace internal | 62 } // namespace internal |
| 63 } // namespace rtc | 63 } // namespace rtc |
| OLD | NEW |