Replace rtc::ThreadChecker with webrtc::SequenceChecker

Bug: webrtc:12419
Change-Id: I825c014cc1c4b1dcba5ef300409d44859e971144
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/205002
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33136}
This commit is contained in:
Artem Titov 2021-02-02 10:57:19 +01:00 committed by Commit Bot
parent 7358b40f44
commit c8421c4c3e
94 changed files with 195 additions and 202 deletions

View File

@ -41,7 +41,7 @@ class IceTransportWithTransportChannel : public IceTransportInterface {
} }
private: private:
const rtc::ThreadChecker thread_checker_{}; const SequenceChecker thread_checker_{};
const std::unique_ptr<cricket::IceTransportInternal> internal_ const std::unique_ptr<cricket::IceTransportInternal> internal_
RTC_GUARDED_BY(thread_checker_); RTC_GUARDED_BY(thread_checker_);
}; };

View File

@ -21,7 +21,7 @@
#include "call/audio_receive_stream.h" #include "call/audio_receive_stream.h"
#include "call/syncable.h" #include "call/syncable.h"
#include "modules/rtp_rtcp/source/source_tracker.h" #include "modules/rtp_rtcp/source/source_tracker.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
namespace webrtc { namespace webrtc {
@ -108,8 +108,8 @@ class AudioReceiveStream final : public webrtc::AudioReceiveStream,
AudioState* audio_state() const; AudioState* audio_state() const;
rtc::ThreadChecker worker_thread_checker_; SequenceChecker worker_thread_checker_;
rtc::ThreadChecker module_process_thread_checker_; SequenceChecker module_process_thread_checker_;
webrtc::AudioReceiveStream::Config config_; webrtc::AudioReceiveStream::Config config_;
rtc::scoped_refptr<webrtc::AudioState> audio_state_; rtc::scoped_refptr<webrtc::AudioState> audio_state_;
const std::unique_ptr<voe::ChannelReceiveInterface> channel_receive_; const std::unique_ptr<voe::ChannelReceiveInterface> channel_receive_;

View File

@ -19,7 +19,7 @@
#include "audio/null_audio_poller.h" #include "audio/null_audio_poller.h"
#include "call/audio_state.h" #include "call/audio_state.h"
#include "rtc_base/ref_count.h" #include "rtc_base/ref_count.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -65,8 +65,8 @@ class AudioState : public webrtc::AudioState {
void UpdateAudioTransportWithSendingStreams(); void UpdateAudioTransportWithSendingStreams();
void UpdateNullAudioPollerState(); void UpdateNullAudioPollerState();
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
rtc::ThreadChecker process_thread_checker_; SequenceChecker process_thread_checker_;
const webrtc::AudioState::Config config_; const webrtc::AudioState::Config config_;
bool recording_enabled_ = true; bool recording_enabled_ = true;
bool playout_enabled_ = true; bool playout_enabled_ = true;

View File

@ -46,7 +46,7 @@
#include "rtc_base/numerics/safe_minmax.h" #include "rtc_base/numerics/safe_minmax.h"
#include "rtc_base/race_checker.h" #include "rtc_base/race_checker.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/time_utils.h" #include "rtc_base/time_utils.h"
#include "system_wrappers/include/metrics.h" #include "system_wrappers/include/metrics.h"
@ -197,8 +197,8 @@ class ChannelReceive : public ChannelReceiveInterface {
// we know about. The goal is to eventually split up voe::ChannelReceive into // we know about. The goal is to eventually split up voe::ChannelReceive into
// parts with single-threaded semantics, and thereby reduce the need for // parts with single-threaded semantics, and thereby reduce the need for
// locks. // locks.
rtc::ThreadChecker worker_thread_checker_; SequenceChecker worker_thread_checker_;
rtc::ThreadChecker module_process_thread_checker_; SequenceChecker module_process_thread_checker_;
// Methods accessed from audio and video threads are checked for sequential- // Methods accessed from audio and video threads are checked for sequential-
// only access. We don't necessarily own and control these threads, so thread // only access. We don't necessarily own and control these threads, so thread
// checkers cannot be used. E.g. Chromium may transfer "ownership" from one // checkers cannot be used. E.g. Chromium may transfer "ownership" from one
@ -269,7 +269,7 @@ class ChannelReceive : public ChannelReceiveInterface {
PacketRouter* packet_router_ = nullptr; PacketRouter* packet_router_ = nullptr;
rtc::ThreadChecker construction_thread_; SequenceChecker construction_thread_;
// E2EE Audio Frame Decryption // E2EE Audio Frame Decryption
rtc::scoped_refptr<FrameDecryptorInterface> frame_decryptor_; rtc::scoped_refptr<FrameDecryptorInterface> frame_decryptor_;

View File

@ -40,8 +40,8 @@
#include "rtc_base/race_checker.h" #include "rtc_base/race_checker.h"
#include "rtc_base/rate_limiter.h" #include "rtc_base/rate_limiter.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_queue.h" #include "rtc_base/task_queue.h"
#include "rtc_base/thread_checker.h"
#include "rtc_base/time_utils.h" #include "rtc_base/time_utils.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
#include "system_wrappers/include/field_trial.h" #include "system_wrappers/include/field_trial.h"
@ -179,8 +179,8 @@ class ChannelSend : public ChannelSendInterface,
// specific threads we know about. The goal is to eventually split up // specific threads we know about. The goal is to eventually split up
// voe::Channel into parts with single-threaded semantics, and thereby reduce // voe::Channel into parts with single-threaded semantics, and thereby reduce
// the need for locks. // the need for locks.
rtc::ThreadChecker worker_thread_checker_; SequenceChecker worker_thread_checker_;
rtc::ThreadChecker module_process_thread_checker_; SequenceChecker module_process_thread_checker_;
// Methods accessed from audio and video threads are checked for sequential- // Methods accessed from audio and video threads are checked for sequential-
// only access. We don't necessarily own and control these threads, so thread // only access. We don't necessarily own and control these threads, so thread
// checkers cannot be used. E.g. Chromium may transfer "ownership" from one // checkers cannot be used. E.g. Chromium may transfer "ownership" from one
@ -218,8 +218,7 @@ class ChannelSend : public ChannelSendInterface,
const std::unique_ptr<RtpPacketSenderProxy> rtp_packet_pacer_proxy_; const std::unique_ptr<RtpPacketSenderProxy> rtp_packet_pacer_proxy_;
const std::unique_ptr<RateLimiter> retransmission_rate_limiter_; const std::unique_ptr<RateLimiter> retransmission_rate_limiter_;
rtc::ThreadChecker construction_thread_; SequenceChecker construction_thread_;
bool encoder_queue_is_active_ RTC_GUARDED_BY(encoder_queue_) = false; bool encoder_queue_is_active_ RTC_GUARDED_BY(encoder_queue_) = false;
@ -264,7 +263,7 @@ class RtpPacketSenderProxy : public RtpPacketSender {
} }
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
Mutex mutex_; Mutex mutex_;
RtpPacketSender* rtp_packet_pacer_ RTC_GUARDED_BY(&mutex_); RtpPacketSender* rtp_packet_pacer_ RTC_GUARDED_BY(&mutex_);
}; };

View File

@ -15,7 +15,7 @@
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/message_handler.h" #include "rtc_base/message_handler.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
namespace internal { namespace internal {
@ -29,7 +29,7 @@ class NullAudioPoller final : public rtc::MessageHandler {
void OnMessage(rtc::Message* msg) override; void OnMessage(rtc::Message* msg) override;
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
AudioTransport* const audio_transport_; AudioTransport* const audio_transport_;
int64_t reschedule_at_; int64_t reschedule_at_;
}; };

View File

@ -100,6 +100,7 @@ rtc_library("audio_egress") {
"../../rtc_base:thread_checker", "../../rtc_base:thread_checker",
"../../rtc_base:timeutils", "../../rtc_base:timeutils",
"../../rtc_base/synchronization:mutex", "../../rtc_base/synchronization:mutex",
"../../rtc_base/synchronization:sequence_checker",
"../../rtc_base/system:no_unique_address", "../../rtc_base/system:no_unique_address",
"../utility:audio_frame_operations", "../utility:audio_frame_operations",
] ]

View File

@ -24,8 +24,8 @@
#include "modules/rtp_rtcp/source/rtp_rtcp_interface.h" #include "modules/rtp_rtcp/source/rtp_rtcp_interface.h"
#include "modules/rtp_rtcp/source/rtp_sender_audio.h" #include "modules/rtp_rtcp/source/rtp_sender_audio.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_queue.h" #include "rtc_base/task_queue.h"
#include "rtc_base/thread_checker.h"
#include "rtc_base/time_utils.h" #include "rtc_base/time_utils.h"
namespace webrtc { namespace webrtc {

View File

@ -38,8 +38,8 @@
#include "rtc_base/constructor_magic.h" #include "rtc_base/constructor_magic.h"
#include "rtc_base/rate_limiter.h" #include "rtc_base/rate_limiter.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
@ -185,7 +185,7 @@ class RtpVideoSender : public RtpVideoSenderInterface,
bool active_ RTC_GUARDED_BY(mutex_); bool active_ RTC_GUARDED_BY(mutex_);
ProcessThread* module_process_thread_; ProcessThread* module_process_thread_;
rtc::ThreadChecker module_process_thread_checker_; SequenceChecker module_process_thread_checker_;
std::map<uint32_t, RtpState> suspended_ssrcs_; std::map<uint32_t, RtpState> suspended_ssrcs_;
const std::unique_ptr<FecController> fec_controller_; const std::unique_ptr<FecController> fec_controller_;

View File

@ -23,8 +23,8 @@
#include "rtc_base/race_checker.h" #include "rtc_base/race_checker.h"
#include "rtc_base/random.h" #include "rtc_base/random.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
// Implementation of the CoDel active queue management algorithm. Loosely based // Implementation of the CoDel active queue management algorithm. Loosely based

View File

@ -18,9 +18,9 @@
#include "api/video/video_sink_interface.h" #include "api/video/video_sink_interface.h"
#include "common_video/video_render_frames.h" #include "common_video/video_render_frames.h"
#include "rtc_base/race_checker.h" #include "rtc_base/race_checker.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_queue.h" #include "rtc_base/task_queue.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
@ -35,7 +35,7 @@ class IncomingVideoStream : public rtc::VideoSinkInterface<VideoFrame> {
void OnFrame(const VideoFrame& video_frame) override; void OnFrame(const VideoFrame& video_frame) override;
void Dequeue(); void Dequeue();
rtc::ThreadChecker main_thread_checker_; SequenceChecker main_thread_checker_;
rtc::RaceChecker decoder_race_checker_; rtc::RaceChecker decoder_race_checker_;
VideoRenderFrames render_buffers_ RTC_GUARDED_BY(&incoming_render_queue_); VideoRenderFrames render_buffers_ RTC_GUARDED_BY(&incoming_render_queue_);

View File

@ -19,7 +19,7 @@
#include "api/peer_connection_interface.h" #include "api/peer_connection_interface.h"
#include "api/scoped_refptr.h" #include "api/scoped_refptr.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "sdk/android/native_api/jni/scoped_java_ref.h" #include "sdk/android/native_api/jni/scoped_java_ref.h"
#include "sdk/android/native_api/video/video_source.h" #include "sdk/android/native_api/video/video_source.h"
@ -46,7 +46,7 @@ class AndroidCallClient {
void CreatePeerConnection() RTC_RUN_ON(thread_checker_); void CreatePeerConnection() RTC_RUN_ON(thread_checker_);
void Connect() RTC_RUN_ON(thread_checker_); void Connect() RTC_RUN_ON(thread_checker_);
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
bool call_started_ RTC_GUARDED_BY(thread_checker_); bool call_started_ RTC_GUARDED_BY(thread_checker_);

View File

@ -19,7 +19,7 @@
#include "api/peer_connection_interface.h" #include "api/peer_connection_interface.h"
#include "api/scoped_refptr.h" #include "api/scoped_refptr.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
@class RTC_OBJC_TYPE(RTCVideoCapturer); @class RTC_OBJC_TYPE(RTCVideoCapturer);
@protocol RTC_OBJC_TYPE @protocol RTC_OBJC_TYPE
@ -57,7 +57,7 @@ class ObjCCallClient {
void CreatePeerConnection() RTC_RUN_ON(thread_checker_); void CreatePeerConnection() RTC_RUN_ON(thread_checker_);
void Connect() RTC_RUN_ON(thread_checker_); void Connect() RTC_RUN_ON(thread_checker_);
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
bool call_started_ RTC_GUARDED_BY(thread_checker_); bool call_started_ RTC_GUARDED_BY(thread_checker_);

View File

@ -16,8 +16,8 @@
#include "api/video/video_source_interface.h" #include "api/video/video_source_interface.h"
#include "media/base/video_source_base.h" #include "media/base/video_source_base.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace rtc { namespace rtc {

View File

@ -16,7 +16,7 @@
#include "api/video/video_frame.h" #include "api/video/video_frame.h"
#include "api/video/video_sink_interface.h" #include "api/video/video_sink_interface.h"
#include "api/video/video_source_interface.h" #include "api/video/video_source_interface.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace rtc { namespace rtc {

View File

@ -34,9 +34,9 @@
#include "media/engine/unhandled_packets_buffer.h" #include "media/engine/unhandled_packets_buffer.h"
#include "rtc_base/network_route.h" #include "rtc_base/network_route.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_utils/pending_task_safety_flag.h" #include "rtc_base/task_utils/pending_task_safety_flag.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
class VideoDecoderFactory; class VideoDecoderFactory;
@ -398,7 +398,7 @@ class WebRtcVideoChannel : public VideoMediaChannel,
webrtc::DegradationPreference GetDegradationPreference() const webrtc::DegradationPreference GetDegradationPreference() const
RTC_EXCLUSIVE_LOCKS_REQUIRED(&thread_checker_); RTC_EXCLUSIVE_LOCKS_REQUIRED(&thread_checker_);
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
rtc::Thread* worker_thread_; rtc::Thread* worker_thread_;
const std::vector<uint32_t> ssrcs_ RTC_GUARDED_BY(&thread_checker_); const std::vector<uint32_t> ssrcs_ RTC_GUARDED_BY(&thread_checker_);
const std::vector<SsrcGroup> ssrc_groups_ RTC_GUARDED_BY(&thread_checker_); const std::vector<SsrcGroup> ssrc_groups_ RTC_GUARDED_BY(&thread_checker_);
@ -556,8 +556,8 @@ class WebRtcVideoChannel : public VideoMediaChannel,
rtc::Thread* const worker_thread_; rtc::Thread* const worker_thread_;
webrtc::ScopedTaskSafety task_safety_; webrtc::ScopedTaskSafety task_safety_;
rtc::ThreadChecker network_thread_checker_; webrtc::SequenceChecker network_thread_checker_;
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
uint32_t rtcp_receiver_report_ssrc_ RTC_GUARDED_BY(thread_checker_); uint32_t rtcp_receiver_report_ssrc_ RTC_GUARDED_BY(thread_checker_);
bool sending_ RTC_GUARDED_BY(thread_checker_); bool sending_ RTC_GUARDED_BY(thread_checker_);

View File

@ -1147,7 +1147,7 @@ class WebRtcVoiceMediaChannel::WebRtcAudioSendStream
int NumPreferredChannels() const override { return num_encoded_channels_; } int NumPreferredChannels() const override { return num_encoded_channels_; }
const AdaptivePtimeConfig adaptive_ptime_config_; const AdaptivePtimeConfig adaptive_ptime_config_;
rtc::ThreadChecker worker_thread_checker_; webrtc::SequenceChecker worker_thread_checker_;
rtc::RaceChecker audio_capture_race_checker_; rtc::RaceChecker audio_capture_race_checker_;
webrtc::Call* call_ = nullptr; webrtc::Call* call_ = nullptr;
webrtc::AudioSendStream::Config config_; webrtc::AudioSendStream::Config config_;
@ -1376,7 +1376,7 @@ class WebRtcVoiceMediaChannel::WebRtcAudioReceiveStream {
stream_->Reconfigure(config_); stream_->Reconfigure(config_);
} }
rtc::ThreadChecker worker_thread_checker_; webrtc::SequenceChecker worker_thread_checker_;
webrtc::Call* call_ = nullptr; webrtc::Call* call_ = nullptr;
webrtc::AudioReceiveStream::Config config_; webrtc::AudioReceiveStream::Config config_;
// The stream is owned by WebRtcAudioReceiveStream and may be reallocated if // The stream is owned by WebRtcAudioReceiveStream and may be reallocated if

View File

@ -28,9 +28,9 @@
#include "modules/async_audio_processing/async_audio_processing.h" #include "modules/async_audio_processing/async_audio_processing.h"
#include "rtc_base/buffer.h" #include "rtc_base/buffer.h"
#include "rtc_base/network_route.h" #include "rtc_base/network_route.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_queue.h" #include "rtc_base/task_queue.h"
#include "rtc_base/task_utils/pending_task_safety_flag.h" #include "rtc_base/task_utils/pending_task_safety_flag.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
class AudioFrameProcessor; class AudioFrameProcessor;
@ -113,8 +113,8 @@ class WebRtcVoiceEngine final : public VoiceEngineInterface {
std::vector<AudioCodec> CollectCodecs( std::vector<AudioCodec> CollectCodecs(
const std::vector<webrtc::AudioCodecSpec>& specs) const; const std::vector<webrtc::AudioCodecSpec>& specs) const;
rtc::ThreadChecker signal_thread_checker_; webrtc::SequenceChecker signal_thread_checker_;
rtc::ThreadChecker worker_thread_checker_; webrtc::SequenceChecker worker_thread_checker_;
// The audio device module. // The audio device module.
rtc::scoped_refptr<webrtc::AudioDeviceModule> adm_; rtc::scoped_refptr<webrtc::AudioDeviceModule> adm_;
@ -287,7 +287,7 @@ class WebRtcVoiceMediaChannel final : public VoiceMediaChannel,
webrtc::TaskQueueBase* const worker_thread_; webrtc::TaskQueueBase* const worker_thread_;
webrtc::ScopedTaskSafety task_safety_; webrtc::ScopedTaskSafety task_safety_;
rtc::ThreadChecker network_thread_checker_; webrtc::SequenceChecker network_thread_checker_;
WebRtcVoiceEngine* const engine_ = nullptr; WebRtcVoiceEngine* const engine_ = nullptr;
std::vector<AudioCodec> send_codecs_; std::vector<AudioCodec> send_codecs_;

View File

@ -47,9 +47,9 @@ constexpr int kSctpSuccessReturn = 1;
#include "rtc_base/numerics/safe_conversions.h" #include "rtc_base/numerics/safe_conversions.h"
#include "rtc_base/string_utils.h" #include "rtc_base/string_utils.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_utils/to_queued_task.h" #include "rtc_base/task_utils/to_queued_task.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "rtc_base/trace_event.h" #include "rtc_base/trace_event.h"
namespace { namespace {

View File

@ -18,9 +18,9 @@
#include "modules/audio_device/android/aaudio_wrapper.h" #include "modules/audio_device/android/aaudio_wrapper.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/message_handler.h" #include "rtc_base/message_handler.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
@ -95,12 +95,12 @@ class AAudioPlayer final : public AAudioObserverInterface,
// Ensures that methods are called from the same thread as this object is // Ensures that methods are called from the same thread as this object is
// created on. // created on.
rtc::ThreadChecker main_thread_checker_; SequenceChecker main_thread_checker_;
// Stores thread ID in first call to AAudioPlayer::OnDataCallback from a // Stores thread ID in first call to AAudioPlayer::OnDataCallback from a
// real-time thread owned by AAudio. Detached during construction of this // real-time thread owned by AAudio. Detached during construction of this
// object. // object.
rtc::ThreadChecker thread_checker_aaudio_; SequenceChecker thread_checker_aaudio_;
// The thread on which this object is created on. // The thread on which this object is created on.
rtc::Thread* main_thread_; rtc::Thread* main_thread_;

View File

@ -18,8 +18,8 @@
#include "modules/audio_device/android/aaudio_wrapper.h" #include "modules/audio_device/android/aaudio_wrapper.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/message_handler.h" #include "rtc_base/message_handler.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
@ -88,12 +88,12 @@ class AAudioRecorder : public AAudioObserverInterface,
// Ensures that methods are called from the same thread as this object is // Ensures that methods are called from the same thread as this object is
// created on. // created on.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to AAudioPlayer::OnDataCallback from a // Stores thread ID in first call to AAudioPlayer::OnDataCallback from a
// real-time thread owned by AAudio. Detached during construction of this // real-time thread owned by AAudio. Detached during construction of this
// object. // object.
rtc::ThreadChecker thread_checker_aaudio_; SequenceChecker thread_checker_aaudio_;
// The thread on which this object is created on. // The thread on which this object is created on.
rtc::Thread* main_thread_; rtc::Thread* main_thread_;

View File

@ -14,7 +14,7 @@
#include <aaudio/AAudio.h> #include <aaudio/AAudio.h>
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -113,8 +113,8 @@ class AAudioWrapper {
bool VerifyStreamConfiguration(); bool VerifyStreamConfiguration();
bool OptimizeBuffers(); bool OptimizeBuffers();
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
rtc::ThreadChecker aaudio_thread_checker_; SequenceChecker aaudio_thread_checker_;
AudioParameters audio_parameters_; AudioParameters audio_parameters_;
const aaudio_direction_t direction_; const aaudio_direction_t direction_;
AAudioObserverInterface* observer_ = nullptr; AAudioObserverInterface* observer_ = nullptr;

View File

@ -15,7 +15,7 @@
#include "modules/audio_device/audio_device_generic.h" #include "modules/audio_device/audio_device_generic.h"
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/logging.h" #include "rtc_base/logging.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -411,7 +411,7 @@ class AudioDeviceTemplate : public AudioDeviceGeneric {
} }
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Local copy of the audio layer set during construction of the // Local copy of the audio layer set during construction of the
// AudioDeviceModuleImpl instance. Read only value. // AudioDeviceModuleImpl instance. Read only value.

View File

@ -23,7 +23,7 @@
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "modules/utility/include/helpers_android.h" #include "modules/utility/include/helpers_android.h"
#include "modules/utility/include/jvm_android.h" #include "modules/utility/include/jvm_android.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -158,9 +158,9 @@ class AudioManager {
jint input_buffer_size); jint input_buffer_size);
// Stores thread ID in the constructor. // Stores thread ID in the constructor.
// We can then use ThreadChecker::IsCurrent() to ensure that // We can then use RTC_DCHECK_RUN_ON(&thread_checker_) to ensure that
// other methods are called from the same thread. // other methods are called from the same thread.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Calls JavaVM::AttachCurrentThread() if this thread is not attached at // Calls JavaVM::AttachCurrentThread() if this thread is not attached at
// construction. // construction.

View File

@ -20,7 +20,7 @@
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "modules/utility/include/helpers_android.h" #include "modules/utility/include/helpers_android.h"
#include "modules/utility/include/jvm_android.h" #include "modules/utility/include/jvm_android.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -110,11 +110,11 @@ class AudioRecordJni {
void OnDataIsRecorded(int length); void OnDataIsRecorded(int length);
// Stores thread ID in constructor. // Stores thread ID in constructor.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to OnDataIsRecorded() from high-priority // Stores thread ID in first call to OnDataIsRecorded() from high-priority
// thread in Java. Detached during construction of this object. // thread in Java. Detached during construction of this object.
rtc::ThreadChecker thread_checker_java_; SequenceChecker thread_checker_java_;
// Calls JavaVM::AttachCurrentThread() if this thread is not attached at // Calls JavaVM::AttachCurrentThread() if this thread is not attached at
// construction. // construction.

View File

@ -21,7 +21,7 @@
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "modules/utility/include/helpers_android.h" #include "modules/utility/include/helpers_android.h"
#include "modules/utility/include/jvm_android.h" #include "modules/utility/include/jvm_android.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -109,11 +109,11 @@ class AudioTrackJni {
void OnGetPlayoutData(size_t length); void OnGetPlayoutData(size_t length);
// Stores thread ID in constructor. // Stores thread ID in constructor.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to OnGetPlayoutData() from high-priority // Stores thread ID in first call to OnGetPlayoutData() from high-priority
// thread in Java. Detached during construction of this object. // thread in Java. Detached during construction of this object.
rtc::ThreadChecker thread_checker_java_; SequenceChecker thread_checker_java_;
// Calls JavaVM::AttachCurrentThread() if this thread is not attached at // Calls JavaVM::AttachCurrentThread() if this thread is not attached at
// construction. // construction.

View File

@ -21,7 +21,7 @@
#include "modules/audio_device/audio_device_generic.h" #include "modules/audio_device/audio_device_generic.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "modules/utility/include/helpers_android.h" #include "modules/utility/include/helpers_android.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -113,12 +113,12 @@ class OpenSLESPlayer {
// Ensures that methods are called from the same thread as this object is // Ensures that methods are called from the same thread as this object is
// created on. // created on.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to SimpleBufferQueueCallback() from internal // Stores thread ID in first call to SimpleBufferQueueCallback() from internal
// non-application thread which is not attached to the Dalvik JVM. // non-application thread which is not attached to the Dalvik JVM.
// Detached during construction of this object. // Detached during construction of this object.
rtc::ThreadChecker thread_checker_opensles_; SequenceChecker thread_checker_opensles_;
// Raw pointer to the audio manager injected at construction. Used to cache // Raw pointer to the audio manager injected at construction. Used to cache
// audio parameters and to access the global SL engine object needed by the // audio parameters and to access the global SL engine object needed by the

View File

@ -23,7 +23,7 @@
#include "modules/audio_device/audio_device_generic.h" #include "modules/audio_device/audio_device_generic.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "modules/utility/include/helpers_android.h" #include "modules/utility/include/helpers_android.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -123,12 +123,12 @@ class OpenSLESRecorder {
// Ensures that methods are called from the same thread as this object is // Ensures that methods are called from the same thread as this object is
// created on. // created on.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to SimpleBufferQueueCallback() from internal // Stores thread ID in first call to SimpleBufferQueueCallback() from internal
// non-application thread which is not attached to the Dalvik JVM. // non-application thread which is not attached to the Dalvik JVM.
// Detached during construction of this object. // Detached during construction of this object.
rtc::ThreadChecker thread_checker_opensles_; SequenceChecker thread_checker_opensles_;
// Raw pointer to the audio manager injected at construction. Used to cache // Raw pointer to the audio manager injected at construction. Used to cache
// audio parameters and to access the global SL engine object needed by the // audio parameters and to access the global SL engine object needed by the

View File

@ -20,9 +20,9 @@
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/buffer.h" #include "rtc_base/buffer.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_queue.h" #include "rtc_base/task_queue.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
@ -140,7 +140,7 @@ class AudioDeviceBuffer {
// TODO(henrika): see if it is possible to refactor and annotate all members. // TODO(henrika): see if it is possible to refactor and annotate all members.
// Main thread on which this object is created. // Main thread on which this object is created.
rtc::ThreadChecker main_thread_checker_; SequenceChecker main_thread_checker_;
Mutex lock_; Mutex lock_;

View File

@ -30,8 +30,8 @@
#include "rtc_base/numerics/safe_conversions.h" #include "rtc_base/numerics/safe_conversions.h"
#include "rtc_base/race_checker.h" #include "rtc_base/race_checker.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "rtc_base/time_utils.h" #include "rtc_base/time_utils.h"
#include "test/gmock.h" #include "test/gmock.h"
#include "test/gtest.h" #include "test/gtest.h"
@ -317,8 +317,8 @@ class LatencyAudioStream : public AudioStream {
Mutex lock_; Mutex lock_;
rtc::RaceChecker race_checker_; rtc::RaceChecker race_checker_;
rtc::ThreadChecker read_thread_checker_; SequenceChecker read_thread_checker_;
rtc::ThreadChecker write_thread_checker_; SequenceChecker write_thread_checker_;
absl::optional<int64_t> pulse_time_ RTC_GUARDED_BY(lock_); absl::optional<int64_t> pulse_time_ RTC_GUARDED_BY(lock_);
std::vector<int> latencies_ RTC_GUARDED_BY(race_checker_); std::vector<int> latencies_ RTC_GUARDED_BY(race_checker_);

View File

@ -22,8 +22,8 @@
#include "rtc_base/event.h" #include "rtc_base/event.h"
#include "rtc_base/platform_thread.h" #include "rtc_base/platform_thread.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#if defined(WEBRTC_USE_X11) #if defined(WEBRTC_USE_X11)
#include <X11/Xlib.h> #include <X11/Xlib.h>
@ -284,10 +284,10 @@ class AudioDeviceLinuxPulse : public AudioDeviceGeneric {
uint8_t _playChannels; uint8_t _playChannels;
// Stores thread ID in constructor. // Stores thread ID in constructor.
// We can then use ThreadChecker::IsCurrent() to ensure that // We can then use RTC_DCHECK_RUN_ON(&worker_thread_checker_) to ensure that
// other methods are called from the same thread. // other methods are called from the same thread.
// Currently only does RTC_DCHECK(thread_checker_.IsCurrent()). // Currently only does RTC_DCHECK(thread_checker_.IsCurrent()).
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
bool _initialized; bool _initialized;
bool _recording; bool _recording;

View File

@ -14,7 +14,7 @@
#include <pulse/pulseaudio.h> #include <pulse/pulseaudio.h>
#include <stdint.h> #include <stdint.h>
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#ifndef UINT32_MAX #ifndef UINT32_MAX
#define UINT32_MAX ((uint32_t)-1) #define UINT32_MAX ((uint32_t)-1)
@ -103,10 +103,10 @@ class AudioMixerManagerLinuxPulse {
bool _paObjectsSet; bool _paObjectsSet;
// Stores thread ID in constructor. // Stores thread ID in constructor.
// We can then use ThreadChecker::IsCurrent() to ensure that // We can then use RTC_DCHECK_RUN_ON(&worker_thread_checker_) to ensure that
// other methods are called from the same thread. // other methods are called from the same thread.
// Currently only does RTC_DCHECK(thread_checker_.IsCurrent()). // Currently only does RTC_DCHECK(thread_checker_.IsCurrent()).
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
}; };
} // namespace webrtc } // namespace webrtc

View File

@ -19,7 +19,7 @@
#include "rtc_base/logging.h" #include "rtc_base/logging.h"
#include "rtc_base/ref_counted_object.h" #include "rtc_base/ref_counted_object.h"
#include "rtc_base/string_utils.h" #include "rtc_base/string_utils.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
namespace webrtc_win { namespace webrtc_win {
@ -487,7 +487,7 @@ class WindowsAudioDeviceModule : public AudioDeviceModuleForTest {
private: private:
// Ensures that the class is used on the same thread as it is constructed // Ensures that the class is used on the same thread as it is constructed
// and destroyed on. // and destroyed on.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Implements the AudioInput interface and deals with audio capturing parts. // Implements the AudioInput interface and deals with audio capturing parts.
const std::unique_ptr<AudioInput> input_; const std::unique_ptr<AudioInput> input_;

View File

@ -19,7 +19,7 @@
#include "absl/types/optional.h" #include "absl/types/optional.h"
#include "modules/audio_device/win/core_audio_utility_win.h" #include "modules/audio_device/win/core_audio_utility_win.h"
#include "rtc_base/platform_thread.h" #include "rtc_base/platform_thread.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -128,8 +128,8 @@ class CoreAudioBase : public IAudioSessionEvents {
// level here. In addition, calls to Init(), Start() and Stop() are not // level here. In addition, calls to Init(), Start() and Stop() are not
// included to allow for support of internal restart (where these methods are // included to allow for support of internal restart (where these methods are
// called on the audio thread). // called on the audio thread).
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
rtc::ThreadChecker thread_checker_audio_; SequenceChecker thread_checker_audio_;
AudioDeviceBuffer* audio_device_buffer_ = nullptr; AudioDeviceBuffer* audio_device_buffer_ = nullptr;
bool initialized_ = false; bool initialized_ = false;
WAVEFORMATEXTENSIBLE format_ = {}; WAVEFORMATEXTENSIBLE format_ = {};

View File

@ -21,8 +21,8 @@
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h" #include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "rtc_base/network/sent_packet.h" #include "rtc_base/network/sent_packet.h"
#include "rtc_base/network_route.h" #include "rtc_base/network_route.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {

View File

@ -15,7 +15,7 @@
#include <utility> #include <utility>
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "system_wrappers/include/metrics.h" #include "system_wrappers/include/metrics.h"
namespace webrtc { namespace webrtc {
@ -42,7 +42,7 @@ class SharedMemoryFactoryProxy : public SharedMemoryFactory {
explicit SharedMemoryFactoryProxy(SharedMemoryFactory* factory); explicit SharedMemoryFactoryProxy(SharedMemoryFactory* factory);
SharedMemoryFactory* factory_ = nullptr; SharedMemoryFactory* factory_ = nullptr;
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
}; };
} // namespace } // namespace

View File

@ -18,7 +18,7 @@
#include <memory> #include <memory>
#include "modules/desktop_capture/shared_desktop_frame.h" #include "modules/desktop_capture/shared_desktop_frame.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "sdk/objc/helpers/scoped_cftyperef.h" #include "sdk/objc/helpers/scoped_cftyperef.h"
namespace webrtc { namespace webrtc {
@ -44,7 +44,7 @@ class DesktopFrameProvider {
void Release(); void Release();
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
const bool allow_iosurface_; const bool allow_iosurface_;
// Most recent IOSurface that contains a capture of matching display. // Most recent IOSurface that contains a capture of matching display.

View File

@ -27,7 +27,7 @@
#include "modules/desktop_capture/screen_capture_frame_queue.h" #include "modules/desktop_capture/screen_capture_frame_queue.h"
#include "modules/desktop_capture/screen_capturer_helper.h" #include "modules/desktop_capture/screen_capturer_helper.h"
#include "modules/desktop_capture/shared_desktop_frame.h" #include "modules/desktop_capture/shared_desktop_frame.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -110,7 +110,7 @@ class ScreenCapturerMac final : public DesktopCapturer {
DesktopFrameProvider desktop_frame_provider_; DesktopFrameProvider desktop_frame_provider_;
// Start, CaptureFrame and destructor have to called in the same thread. // Start, CaptureFrame and destructor have to called in the same thread.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerMac); RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerMac);
}; };

View File

@ -17,7 +17,7 @@
#include <string> #include <string>
#include "modules/utility/include/helpers_android.h" #include "modules/utility/include/helpers_android.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -34,7 +34,7 @@ class JvmThreadConnector {
~JvmThreadConnector(); ~JvmThreadConnector();
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
bool attached_; bool attached_;
}; };
@ -111,7 +111,7 @@ class JNIEnvironment {
std::string JavaToStdString(const jstring& j_string); std::string JavaToStdString(const jstring& j_string);
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
JNIEnv* const jni_; JNIEnv* const jni_;
}; };
@ -184,7 +184,7 @@ class JVM {
private: private:
JNIEnv* jni() const { return GetEnv(jvm_); } JNIEnv* jni() const { return GetEnv(jvm_); }
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
JavaVM* const jvm_; JavaVM* const jvm_;
}; };

View File

@ -24,7 +24,7 @@
#include "rtc_base/event.h" #include "rtc_base/event.h"
#include "rtc_base/location.h" #include "rtc_base/location.h"
#include "rtc_base/platform_thread.h" #include "rtc_base/platform_thread.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -95,7 +95,7 @@ class ProcessThreadImpl : public ProcessThread {
rtc::RecursiveCriticalSection rtc::RecursiveCriticalSection
lock_; // Used to guard modules_, tasks_ and stop_. lock_; // Used to guard modules_, tasks_ and stop_.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
rtc::Event wake_up_; rtc::Event wake_up_;
// TODO(pbos): Remove unique_ptr and stop recreating the thread. // TODO(pbos): Remove unique_ptr and stop recreating the thread.
std::unique_ptr<rtc::PlatformThread> thread_; std::unique_ptr<rtc::PlatformThread> thread_;

View File

@ -19,8 +19,8 @@
#include "modules/video_capture/video_capture_impl.h" #include "modules/video_capture/video_capture_impl.h"
#include "modules/video_capture/windows/help_functions_ds.h" #include "modules/video_capture/windows/help_functions_ds.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
namespace videocapturemodule { namespace videocapturemodule {
@ -89,8 +89,8 @@ class CaptureInputPin : public IMemInputPin, public IPin {
STDMETHOD(ReceiveCanBlock)() override; STDMETHOD(ReceiveCanBlock)() override;
// clang-format on // clang-format on
rtc::ThreadChecker main_checker_; SequenceChecker main_checker_;
rtc::ThreadChecker capture_checker_; SequenceChecker capture_checker_;
VideoCaptureCapability requested_capability_ RTC_GUARDED_BY(main_checker_); VideoCaptureCapability requested_capability_ RTC_GUARDED_BY(main_checker_);
// Accessed on the main thread when Filter()->IsStopped() (capture thread not // Accessed on the main thread when Filter()->IsStopped() (capture thread not
@ -147,7 +147,7 @@ class CaptureSinkFilter : public IBaseFilter {
virtual ~CaptureSinkFilter(); virtual ~CaptureSinkFilter();
private: private:
rtc::ThreadChecker main_checker_; SequenceChecker main_checker_;
const rtc::scoped_refptr<ComRefCount<CaptureInputPin>> input_pin_; const rtc::scoped_refptr<ComRefCount<CaptureInputPin>> input_pin_;
VideoCaptureImpl* const capture_observer_; VideoCaptureImpl* const capture_observer_;
FILTER_INFO info_ RTC_GUARDED_BY(main_checker_) = {}; FILTER_INFO info_ RTC_GUARDED_BY(main_checker_) = {};

View File

@ -40,7 +40,6 @@
#include "rtc_base/synchronization/sequence_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/system/no_unique_address.h" #include "rtc_base/system/no_unique_address.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "test/testsupport/frame_reader.h" #include "test/testsupport/frame_reader.h"
#include "test/testsupport/frame_writer.h" #include "test/testsupport/frame_writer.h"

View File

@ -21,7 +21,7 @@
#include "modules/video_coding/timing.h" #include "modules/video_coding/timing.h"
#include "rtc_base/experiments/field_trial_parser.h" #include "rtc_base/experiments/field_trial_parser.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -61,7 +61,7 @@ class VCMDecodedFrameCallback : public DecodedImageCallback {
int32_t Pop(uint32_t timestamp); int32_t Pop(uint32_t timestamp);
private: private:
rtc::ThreadChecker construction_thread_; SequenceChecker construction_thread_;
// Protect |_timestampMap|. // Protect |_timestampMap|.
Clock* const _clock; Clock* const _clock;
// This callback must be set before the decoder thread starts running // This callback must be set before the decoder thread starts running

View File

@ -16,7 +16,7 @@
#include "api/video/encoded_image.h" #include "api/video/encoded_image.h"
#include "modules/video_coding/include/video_codec_interface.h" #include "modules/video_coding/include/video_codec_interface.h"
#include "modules/video_coding/timing.h" #include "modules/video_coding/timing.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
namespace webrtc { namespace webrtc {
@ -105,7 +105,7 @@ class VideoCodingModuleImpl : public VideoCodingModule {
} }
private: private:
rtc::ThreadChecker construction_thread_; SequenceChecker construction_thread_;
const std::unique_ptr<VCMTiming> timing_; const std::unique_ptr<VCMTiming> timing_;
vcm::VideoReceiver receiver_; vcm::VideoReceiver receiver_;
}; };

View File

@ -27,7 +27,6 @@
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
namespace webrtc { namespace webrtc {
@ -97,9 +96,9 @@ class VideoReceiver : public Module {
// In builds where DCHECKs aren't enabled, it will return true. // In builds where DCHECKs aren't enabled, it will return true.
bool IsDecoderThreadRunning(); bool IsDecoderThreadRunning();
rtc::ThreadChecker construction_thread_checker_; SequenceChecker construction_thread_checker_;
rtc::ThreadChecker decoder_thread_checker_; SequenceChecker decoder_thread_checker_;
rtc::ThreadChecker module_thread_checker_; SequenceChecker module_thread_checker_;
Clock* const clock_; Clock* const clock_;
Mutex process_mutex_; Mutex process_mutex_;
VCMTiming* _timing; VCMTiming* _timing;

View File

@ -33,7 +33,7 @@
#include "rtc_base/location.h" #include "rtc_base/location.h"
#include "rtc_base/logging.h" #include "rtc_base/logging.h"
#include "rtc_base/one_time_event.h" #include "rtc_base/one_time_event.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/trace_event.h" #include "rtc_base/trace_event.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"

View File

@ -15,7 +15,7 @@
#include "modules/video_coding/encoded_frame.h" #include "modules/video_coding/encoded_frame.h"
#include "modules/video_coding/generic_decoder.h" #include "modules/video_coding/generic_decoder.h"
#include "modules/video_coding/timing.h" #include "modules/video_coding/timing.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
namespace webrtc { namespace webrtc {
@ -54,8 +54,8 @@ class VideoReceiver2 {
// In builds where DCHECKs aren't enabled, it will return true. // In builds where DCHECKs aren't enabled, it will return true.
bool IsDecoderThreadRunning(); bool IsDecoderThreadRunning();
rtc::ThreadChecker construction_thread_checker_; SequenceChecker construction_thread_checker_;
rtc::ThreadChecker decoder_thread_checker_; SequenceChecker decoder_thread_checker_;
Clock* const clock_; Clock* const clock_;
VCMTiming* timing_; VCMTiming* timing_;
VCMDecodedFrameCallback decodedFrameCallback_; VCMDecodedFrameCallback decodedFrameCallback_;

View File

@ -36,7 +36,7 @@ class DefaultIceTransport : public IceTransportInterface {
} }
private: private:
const rtc::ThreadChecker thread_checker_{}; const SequenceChecker thread_checker_{};
std::unique_ptr<cricket::P2PTransportChannel> internal_ std::unique_ptr<cricket::P2PTransportChannel> internal_
RTC_GUARDED_BY(thread_checker_); RTC_GUARDED_BY(thread_checker_);
}; };

View File

@ -26,7 +26,6 @@
#include "rtc_base/strings/string_builder.h" #include "rtc_base/strings/string_builder.h"
#include "rtc_base/synchronization/sequence_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/system/no_unique_address.h" #include "rtc_base/system/no_unique_address.h"
#include "rtc_base/thread_checker.h"
namespace rtc { namespace rtc {
class PacketTransportInternal; class PacketTransportInternal;
@ -223,7 +222,7 @@ class DtlsTransport : public DtlsTransportInternal {
// Sets the DTLS state, signaling if necessary. // Sets the DTLS state, signaling if necessary.
void set_dtls_state(DtlsTransportState state); void set_dtls_state(DtlsTransportState state);
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
std::string transport_name_; std::string transport_name_;
int component_; int component_;

View File

@ -20,8 +20,8 @@
#include "rtc_base/async_udp_socket.h" #include "rtc_base/async_udp_socket.h"
#include "rtc_base/ssl_adapter.h" #include "rtc_base/ssl_adapter.h"
#include "rtc_base/ssl_identity.h" #include "rtc_base/ssl_identity.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_checker.h"
namespace cricket { namespace cricket {
@ -147,7 +147,7 @@ class TestTurnServer : public TurnAuthInterface {
TurnServer server_; TurnServer server_;
rtc::Thread* thread_; rtc::Thread* thread_;
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
}; };
} // namespace cricket } // namespace cricket

View File

@ -23,9 +23,9 @@
#include "rtc_base/async_invoker.h" #include "rtc_base/async_invoker.h"
#include "rtc_base/async_packet_socket.h" #include "rtc_base/async_packet_socket.h"
#include "rtc_base/socket_address.h" #include "rtc_base/socket_address.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/third_party/sigslot/sigslot.h" #include "rtc_base/third_party/sigslot/sigslot.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_checker.h"
namespace rtc { namespace rtc {
class ByteBufferWriter; class ByteBufferWriter;
@ -316,7 +316,7 @@ class TurnServer : public sigslot::has_slots<> {
typedef std::map<rtc::AsyncSocket*, ProtocolType> ServerSocketMap; typedef std::map<rtc::AsyncSocket*, ProtocolType> ServerSocketMap;
rtc::Thread* thread_; rtc::Thread* thread_;
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
std::string nonce_key_; std::string nonce_key_;
std::string realm_; std::string realm_;
std::string software_; std::string software_;

View File

@ -103,7 +103,7 @@ class StunProber::Requester : public sigslot::has_slots<> {
int16_t num_request_sent_ = 0; int16_t num_request_sent_ = 0;
int16_t num_response_received_ = 0; int16_t num_response_received_ = 0;
rtc::ThreadChecker& thread_checker_; webrtc::SequenceChecker& thread_checker_;
RTC_DISALLOW_COPY_AND_ASSIGN(Requester); RTC_DISALLOW_COPY_AND_ASSIGN(Requester);
}; };

View File

@ -22,9 +22,9 @@
#include "rtc_base/ip_address.h" #include "rtc_base/ip_address.h"
#include "rtc_base/network.h" #include "rtc_base/network.h"
#include "rtc_base/socket_address.h" #include "rtc_base/socket_address.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/system/rtc_export.h" #include "rtc_base/system/rtc_export.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_checker.h"
namespace rtc { namespace rtc {
class AsyncPacketSocket; class AsyncPacketSocket;
@ -227,7 +227,7 @@ class RTC_EXPORT StunProber : public sigslot::has_slots<> {
// The set of STUN probe sockets and their state. // The set of STUN probe sockets and their state.
std::vector<Requester*> requesters_; std::vector<Requester*> requesters_;
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
// Temporary storage for created sockets. // Temporary storage for created sockets.
std::vector<rtc::AsyncPacketSocket*> sockets_; std::vector<rtc::AsyncPacketSocket*> sockets_;

View File

@ -584,6 +584,7 @@ rtc_library("audio_track") {
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:refcount", "../rtc_base:refcount",
"../rtc_base:thread_checker", "../rtc_base:thread_checker",
"../rtc_base/synchronization:sequence_checker",
] ]
} }

View File

@ -16,7 +16,7 @@
#include "api/media_stream_interface.h" #include "api/media_stream_interface.h"
#include "api/media_stream_track.h" #include "api/media_stream_track.h"
#include "api/scoped_refptr.h" #include "api/scoped_refptr.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -53,7 +53,7 @@ class AudioTrack : public MediaStreamTrack<AudioTrackInterface>,
private: private:
const rtc::scoped_refptr<AudioSourceInterface> audio_source_; const rtc::scoped_refptr<AudioSourceInterface> audio_source_;
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
}; };
} // namespace webrtc } // namespace webrtc

View File

@ -13,9 +13,9 @@
#include "api/ice_transport_interface.h" #include "api/ice_transport_interface.h"
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {

View File

@ -52,7 +52,6 @@
#include "rtc_base/third_party/sigslot/sigslot.h" #include "rtc_base/third_party/sigslot/sigslot.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace cricket { namespace cricket {

View File

@ -28,7 +28,7 @@
#include "rtc_base/buffer.h" #include "rtc_base/buffer.h"
#include "rtc_base/constructor_magic.h" #include "rtc_base/constructor_magic.h"
#include "rtc_base/ssl_stream_adapter.h" #include "rtc_base/ssl_stream_adapter.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
// Forward declaration to avoid pulling in libsrtp headers here // Forward declaration to avoid pulling in libsrtp headers here
struct srtp_event_data_t; struct srtp_event_data_t;

View File

@ -16,7 +16,7 @@
#include "api/scoped_refptr.h" #include "api/scoped_refptr.h"
#include "rtc_base/constructor_magic.h" #include "rtc_base/constructor_magic.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
// Forward declaration to avoid pulling in libsrtp headers here // Forward declaration to avoid pulling in libsrtp headers here
struct srtp_event_data_t; struct srtp_event_data_t;
@ -124,7 +124,7 @@ class SrtpSession {
void HandleEvent(const srtp_event_data_t* ev); void HandleEvent(const srtp_event_data_t* ev);
static void HandleEventThunk(srtp_event_data_t* ev); static void HandleEventThunk(srtp_event_data_t* ev);
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
srtp_ctx_t_* session_ = nullptr; srtp_ctx_t_* session_ = nullptr;
int rtp_auth_tag_len_ = 0; int rtp_auth_tag_len_ = 0;
int rtcp_auth_tag_len_ = 0; int rtcp_auth_tag_len_ = 0;

View File

@ -86,7 +86,7 @@ class FakePeriodicVideoSource final
} }
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
rtc::VideoBroadcaster broadcaster_; rtc::VideoBroadcaster broadcaster_;
cricket::FakeFrameSource frame_source_; cricket::FakeFrameSource frame_source_;

View File

@ -37,7 +37,7 @@
#include "rtc_base/ref_counted_object.h" #include "rtc_base/ref_counted_object.h"
#include "rtc_base/rtc_certificate_generator.h" #include "rtc_base/rtc_certificate_generator.h"
#include "rtc_base/string_encode.h" #include "rtc_base/string_encode.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/time_utils.h" #include "rtc_base/time_utils.h"
#include "test/gtest.h" #include "test/gtest.h"

View File

@ -27,9 +27,9 @@
#include "api/scoped_refptr.h" #include "api/scoped_refptr.h"
#include "pc/test/fake_audio_capture_module.h" #include "pc/test/fake_audio_capture_module.h"
#include "pc/test/fake_video_track_renderer.h" #include "pc/test/fake_video_track_renderer.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/third_party/sigslot/sigslot.h" #include "rtc_base/third_party/sigslot/sigslot.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_checker.h"
class PeerConnectionTestWrapper class PeerConnectionTestWrapper
: public webrtc::PeerConnectionObserver, : public webrtc::PeerConnectionObserver,
@ -120,7 +120,7 @@ class PeerConnectionTestWrapper
std::string name_; std::string name_;
rtc::Thread* const network_thread_; rtc::Thread* const network_thread_;
rtc::Thread* const worker_thread_; rtc::Thread* const worker_thread_;
rtc::ThreadChecker pc_thread_checker_; webrtc::SequenceChecker pc_thread_checker_;
rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface>
peer_connection_factory_; peer_connection_factory_;

View File

@ -43,7 +43,7 @@ class RTCStatsObtainer : public RTCStatsCollectorCallback {
: report_ptr_(report_ptr) {} : report_ptr_(report_ptr) {}
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
rtc::scoped_refptr<const RTCStatsReport> report_; rtc::scoped_refptr<const RTCStatsReport> report_;
rtc::scoped_refptr<const RTCStatsReport>* report_ptr_; rtc::scoped_refptr<const RTCStatsReport>* report_ptr_;
}; };

View File

@ -20,9 +20,9 @@
#include "api/video/video_sink_interface.h" #include "api/video/video_sink_interface.h"
#include "api/video/video_source_interface.h" #include "api/video/video_source_interface.h"
#include "media/base/video_source_base.h" #include "media/base/video_source_base.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
@ -58,7 +58,7 @@ class VideoTrack : public MediaStreamTrack<VideoTrackInterface>,
void OnChanged() override; void OnChanged() override;
rtc::Thread* const worker_thread_; rtc::Thread* const worker_thread_;
rtc::ThreadChecker signaling_thread_checker_; SequenceChecker signaling_thread_checker_;
rtc::scoped_refptr<VideoTrackSourceInterface> video_source_; rtc::scoped_refptr<VideoTrackSourceInterface> video_source_;
ContentHint content_hint_ RTC_GUARDED_BY(signaling_thread_checker_); ContentHint content_hint_ RTC_GUARDED_BY(signaling_thread_checker_);
}; };

View File

@ -19,8 +19,8 @@
#include "api/video/video_sink_interface.h" #include "api/video/video_sink_interface.h"
#include "api/video/video_source_interface.h" #include "api/video/video_source_interface.h"
#include "media/base/media_channel.h" #include "media/base/media_channel.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/system/rtc_export.h" #include "rtc_base/system/rtc_export.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
@ -56,7 +56,7 @@ class RTC_EXPORT VideoTrackSource : public Notifier<VideoTrackSourceInterface> {
virtual rtc::VideoSourceInterface<VideoFrame>* source() = 0; virtual rtc::VideoSourceInterface<VideoFrame>* source() = 0;
private: private:
rtc::ThreadChecker worker_thread_checker_; SequenceChecker worker_thread_checker_;
SourceState state_; SourceState state_;
const bool remote_; const bool remote_;
}; };

View File

@ -238,6 +238,7 @@ rtc_library("platform_thread") {
":rtc_event", ":rtc_event",
":thread_checker", ":thread_checker",
":timeutils", ":timeutils",
"synchronization:sequence_checker",
] ]
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ] absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
} }

View File

@ -24,8 +24,8 @@
#include "rtc_base/platform_thread.h" #include "rtc_base/platform_thread.h"
#include "rtc_base/platform_thread_types.h" #include "rtc_base/platform_thread_types.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "rtc_base/time_utils.h" #include "rtc_base/time_utils.h"
#include "rtc_base/trace_event.h" #include "rtc_base/trace_event.h"
@ -321,7 +321,7 @@ class EventLogger final {
std::vector<TraceEvent> trace_events_ RTC_GUARDED_BY(mutex_); std::vector<TraceEvent> trace_events_ RTC_GUARDED_BY(mutex_);
rtc::PlatformThread logging_thread_; rtc::PlatformThread logging_thread_;
rtc::Event shutdown_event_; rtc::Event shutdown_event_;
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
FILE* output_file_ = nullptr; FILE* output_file_ = nullptr;
bool output_file_owned_ = false; bool output_file_owned_ = false;
}; };

View File

@ -19,7 +19,7 @@
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
#include "rtc_base/constructor_magic.h" #include "rtc_base/constructor_magic.h"
#include "rtc_base/platform_thread_types.h" #include "rtc_base/platform_thread_types.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace rtc { namespace rtc {
@ -84,8 +84,8 @@ class PlatformThread {
// TODO(pbos): Make sure call sites use string literals and update to a const // TODO(pbos): Make sure call sites use string literals and update to a const
// char* instead of a std::string. // char* instead of a std::string.
const std::string name_; const std::string name_;
rtc::ThreadChecker thread_checker_; webrtc::SequenceChecker thread_checker_;
rtc::ThreadChecker spawned_thread_checker_; webrtc::SequenceChecker spawned_thread_checker_;
#if defined(WEBRTC_WIN) #if defined(WEBRTC_WIN)
static DWORD WINAPI StartThread(void* param); static DWORD WINAPI StartThread(void* param);

View File

@ -16,8 +16,8 @@
#include "api/function_view.h" #include "api/function_view.h"
#include "rtc_base/event.h" #include "rtc_base/event.h"
#include "rtc_base/platform_thread.h" #include "rtc_base/platform_thread.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_queue_for_test.h" #include "rtc_base/task_queue_for_test.h"
#include "rtc_base/thread_checker.h"
#include "test/gtest.h" #include "test/gtest.h"
namespace webrtc { namespace webrtc {

View File

@ -28,7 +28,6 @@
#include "rtc_base/synchronization/sequence_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/third_party/sigslot/sigslot.h" #include "rtc_base/third_party/sigslot/sigslot.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "rtc_tools/network_tester/packet_logger.h" #include "rtc_tools/network_tester/packet_logger.h"
#include "rtc_tools/network_tester/packet_sender.h" #include "rtc_tools/network_tester/packet_sender.h"
@ -69,7 +68,7 @@ class TestController : public sigslot::has_slots<> {
size_t len, size_t len,
const rtc::SocketAddress& remote_addr, const rtc::SocketAddress& remote_addr,
const int64_t& packet_time_us); const int64_t& packet_time_us);
rtc::ThreadChecker test_controller_thread_checker_; SequenceChecker test_controller_thread_checker_;
SequenceChecker packet_sender_checker_; SequenceChecker packet_sender_checker_;
rtc::BasicPacketSocketFactory socket_factory_; rtc::BasicPacketSocketFactory socket_factory_;
const std::string config_file_path_; const std::string config_file_path_;

View File

@ -27,7 +27,7 @@
#include "absl/types/optional.h" #include "absl/types/optional.h"
#include "api/array_view.h" #include "api/array_view.h"
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "sdk/android/native_api/jni/scoped_java_ref.h" #include "sdk/android/native_api/jni/scoped_java_ref.h"
// Abort the process if |jni| has a Java exception pending. // Abort the process if |jni| has a Java exception pending.
@ -95,7 +95,7 @@ class Iterable {
JNIEnv* jni_ = nullptr; JNIEnv* jni_ = nullptr;
ScopedJavaLocalRef<jobject> iterator_; ScopedJavaLocalRef<jobject> iterator_;
ScopedJavaLocalRef<jobject> value_; ScopedJavaLocalRef<jobject> value_;
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
RTC_DISALLOW_COPY_AND_ASSIGN(Iterator); RTC_DISALLOW_COPY_AND_ASSIGN(Iterator);
}; };

View File

@ -18,9 +18,9 @@
#include "modules/audio_device/audio_device_buffer.h" #include "modules/audio_device/audio_device_buffer.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/message_handler.h" #include "rtc_base/message_handler.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "sdk/android/src/jni/audio_device/aaudio_wrapper.h" #include "sdk/android/src/jni/audio_device/aaudio_wrapper.h"
#include "sdk/android/src/jni/audio_device/audio_device_module.h" #include "sdk/android/src/jni/audio_device/audio_device_module.h"
@ -99,12 +99,12 @@ class AAudioPlayer final : public AudioOutput,
// Ensures that methods are called from the same thread as this object is // Ensures that methods are called from the same thread as this object is
// created on. // created on.
rtc::ThreadChecker main_thread_checker_; SequenceChecker main_thread_checker_;
// Stores thread ID in first call to AAudioPlayer::OnDataCallback from a // Stores thread ID in first call to AAudioPlayer::OnDataCallback from a
// real-time thread owned by AAudio. Detached during construction of this // real-time thread owned by AAudio. Detached during construction of this
// object. // object.
rtc::ThreadChecker thread_checker_aaudio_; SequenceChecker thread_checker_aaudio_;
// The thread on which this object is created on. // The thread on which this object is created on.
rtc::Thread* main_thread_; rtc::Thread* main_thread_;

View File

@ -17,8 +17,8 @@
#include "modules/audio_device/audio_device_buffer.h" #include "modules/audio_device/audio_device_buffer.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/message_handler.h" #include "rtc_base/message_handler.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_checker.h"
#include "sdk/android/src/jni/audio_device/aaudio_wrapper.h" #include "sdk/android/src/jni/audio_device/aaudio_wrapper.h"
#include "sdk/android/src/jni/audio_device/audio_device_module.h" #include "sdk/android/src/jni/audio_device/audio_device_module.h"
@ -90,12 +90,12 @@ class AAudioRecorder : public AudioInput,
// Ensures that methods are called from the same thread as this object is // Ensures that methods are called from the same thread as this object is
// created on. // created on.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to AAudioPlayer::OnDataCallback from a // Stores thread ID in first call to AAudioPlayer::OnDataCallback from a
// real-time thread owned by AAudio. Detached during construction of this // real-time thread owned by AAudio. Detached during construction of this
// object. // object.
rtc::ThreadChecker thread_checker_aaudio_; SequenceChecker thread_checker_aaudio_;
// The thread on which this object is created on. // The thread on which this object is created on.
rtc::Thread* main_thread_; rtc::Thread* main_thread_;

View File

@ -14,7 +14,7 @@
#include <aaudio/AAudio.h> #include <aaudio/AAudio.h>
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -113,8 +113,8 @@ class AAudioWrapper {
bool VerifyStreamConfiguration(); bool VerifyStreamConfiguration();
bool OptimizeBuffers(); bool OptimizeBuffers();
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
rtc::ThreadChecker aaudio_thread_checker_; SequenceChecker aaudio_thread_checker_;
const AudioParameters audio_parameters_; const AudioParameters audio_parameters_;
const aaudio_direction_t direction_; const aaudio_direction_t direction_;
AAudioObserverInterface* observer_ = nullptr; AAudioObserverInterface* observer_ = nullptr;

View File

@ -19,7 +19,7 @@
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/logging.h" #include "rtc_base/logging.h"
#include "rtc_base/ref_counted_object.h" #include "rtc_base/ref_counted_object.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "sdk/android/generated_audio_device_module_base_jni/WebRtcAudioManager_jni.h" #include "sdk/android/generated_audio_device_module_base_jni/WebRtcAudioManager_jni.h"
#include "system_wrappers/include/metrics.h" #include "system_wrappers/include/metrics.h"
@ -583,7 +583,7 @@ class AndroidAudioDeviceModule : public AudioDeviceModule {
} }
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
const AudioDeviceModule::AudioLayer audio_layer_; const AudioDeviceModule::AudioLayer audio_layer_;
const bool is_stereo_playout_supported_; const bool is_stereo_playout_supported_;

View File

@ -16,7 +16,7 @@
#include "modules/audio_device/audio_device_buffer.h" #include "modules/audio_device/audio_device_buffer.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "sdk/android/src/jni/audio_device/audio_device_module.h" #include "sdk/android/src/jni/audio_device/audio_device_module.h"
namespace webrtc { namespace webrtc {
@ -93,11 +93,11 @@ class AudioRecordJni : public AudioInput {
private: private:
// Stores thread ID in constructor. // Stores thread ID in constructor.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to OnDataIsRecorded() from high-priority // Stores thread ID in first call to OnDataIsRecorded() from high-priority
// thread in Java. Detached during construction of this object. // thread in Java. Detached during construction of this object.
rtc::ThreadChecker thread_checker_java_; SequenceChecker thread_checker_java_;
// Wraps the Java specific parts of the AudioRecordJni class. // Wraps the Java specific parts of the AudioRecordJni class.
JNIEnv* env_ = nullptr; JNIEnv* env_ = nullptr;

View File

@ -17,7 +17,7 @@
#include "absl/types/optional.h" #include "absl/types/optional.h"
#include "modules/audio_device/audio_device_buffer.h" #include "modules/audio_device/audio_device_buffer.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "sdk/android/src/jni/audio_device/audio_common.h" #include "sdk/android/src/jni/audio_device/audio_common.h"
#include "sdk/android/src/jni/audio_device/audio_device_module.h" #include "sdk/android/src/jni/audio_device/audio_device_module.h"
@ -84,11 +84,11 @@ class AudioTrackJni : public AudioOutput {
private: private:
// Stores thread ID in constructor. // Stores thread ID in constructor.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to OnGetPlayoutData() from high-priority // Stores thread ID in first call to OnGetPlayoutData() from high-priority
// thread in Java. Detached during construction of this object. // thread in Java. Detached during construction of this object.
rtc::ThreadChecker thread_checker_java_; SequenceChecker thread_checker_java_;
// Wraps the Java specific parts of the AudioTrackJni class. // Wraps the Java specific parts of the AudioTrackJni class.
JNIEnv* env_ = nullptr; JNIEnv* env_ = nullptr;

View File

@ -17,7 +17,7 @@
#include "api/ref_counted_base.h" #include "api/ref_counted_base.h"
#include "rtc_base/checks.h" #include "rtc_base/checks.h"
#include "rtc_base/logging.h" #include "rtc_base/logging.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
namespace webrtc { namespace webrtc {
@ -75,7 +75,7 @@ class OpenSLEngineManager : public rtc::RefCountedBase {
SLObjectItf GetOpenSLEngine(); SLObjectItf GetOpenSLEngine();
private: private:
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// This object is the global entry point of the OpenSL ES API. // This object is the global entry point of the OpenSL ES API.
// After creating the engine object, the application can obtain this objects // After creating the engine object, the application can obtain this objects
// SLEngineItf interface. This interface contains creation methods for all // SLEngineItf interface. This interface contains creation methods for all

View File

@ -21,7 +21,7 @@
#include "modules/audio_device/audio_device_buffer.h" #include "modules/audio_device/audio_device_buffer.h"
#include "modules/audio_device/fine_audio_buffer.h" #include "modules/audio_device/fine_audio_buffer.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "sdk/android/src/jni/audio_device/audio_common.h" #include "sdk/android/src/jni/audio_device/audio_common.h"
#include "sdk/android/src/jni/audio_device/audio_device_module.h" #include "sdk/android/src/jni/audio_device/audio_device_module.h"
#include "sdk/android/src/jni/audio_device/opensles_common.h" #include "sdk/android/src/jni/audio_device/opensles_common.h"
@ -121,12 +121,12 @@ class OpenSLESPlayer : public AudioOutput {
// Ensures that methods are called from the same thread as this object is // Ensures that methods are called from the same thread as this object is
// created on. // created on.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to SimpleBufferQueueCallback() from internal // Stores thread ID in first call to SimpleBufferQueueCallback() from internal
// non-application thread which is not attached to the Dalvik JVM. // non-application thread which is not attached to the Dalvik JVM.
// Detached during construction of this object. // Detached during construction of this object.
rtc::ThreadChecker thread_checker_opensles_; SequenceChecker thread_checker_opensles_;
const AudioParameters audio_parameters_; const AudioParameters audio_parameters_;

View File

@ -21,7 +21,7 @@
#include "modules/audio_device/audio_device_buffer.h" #include "modules/audio_device/audio_device_buffer.h"
#include "modules/audio_device/fine_audio_buffer.h" #include "modules/audio_device/fine_audio_buffer.h"
#include "modules/audio_device/include/audio_device_defines.h" #include "modules/audio_device/include/audio_device_defines.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "sdk/android/src/jni/audio_device/audio_common.h" #include "sdk/android/src/jni/audio_device/audio_common.h"
#include "sdk/android/src/jni/audio_device/audio_device_module.h" #include "sdk/android/src/jni/audio_device/audio_device_module.h"
#include "sdk/android/src/jni/audio_device/opensles_common.h" #include "sdk/android/src/jni/audio_device/opensles_common.h"
@ -128,12 +128,12 @@ class OpenSLESRecorder : public AudioInput {
// Ensures that methods are called from the same thread as this object is // Ensures that methods are called from the same thread as this object is
// created on. // created on.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Stores thread ID in first call to SimpleBufferQueueCallback() from internal // Stores thread ID in first call to SimpleBufferQueueCallback() from internal
// non-application thread which is not attached to the Dalvik JVM. // non-application thread which is not attached to the Dalvik JVM.
// Detached during construction of this object. // Detached during construction of this object.
rtc::ThreadChecker thread_checker_opensles_; SequenceChecker thread_checker_opensles_;
const AudioParameters audio_parameters_; const AudioParameters audio_parameters_;

View File

@ -20,7 +20,7 @@
#include "common_video/h264/h264_bitstream_parser.h" #include "common_video/h264/h264_bitstream_parser.h"
#include "rtc_base/race_checker.h" #include "rtc_base/race_checker.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "sdk/android/src/jni/jni_helpers.h" #include "sdk/android/src/jni/jni_helpers.h"
namespace webrtc { namespace webrtc {
@ -83,7 +83,7 @@ class VideoDecoderWrapper : public VideoDecoder {
const ScopedJavaGlobalRef<jobject> decoder_; const ScopedJavaGlobalRef<jobject> decoder_;
const std::string implementation_name_; const std::string implementation_name_;
rtc::ThreadChecker decoder_thread_checker_; SequenceChecker decoder_thread_checker_;
// Callbacks must be executed sequentially on an arbitrary thread. We do not // Callbacks must be executed sequentially on an arbitrary thread. We do not
// own this thread so a thread checker cannot be used. // own this thread so a thread checker cannot be used.
rtc::RaceChecker callback_race_checker_; rtc::RaceChecker callback_race_checker_;

View File

@ -16,9 +16,9 @@
#include "audio_session_observer.h" #include "audio_session_observer.h"
#include "modules/audio_device/audio_device_generic.h" #include "modules/audio_device/audio_device_generic.h"
#include "rtc_base/buffer.h" #include "rtc_base/buffer.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "sdk/objc/base/RTCMacros.h" #include "sdk/objc/base/RTCMacros.h"
#include "voice_processing_audio_unit.h" #include "voice_processing_audio_unit.h"
@ -210,10 +210,10 @@ class AudioDeviceIOS : public AudioDeviceGeneric,
// Ensures that methods are called from the same thread as this object is // Ensures that methods are called from the same thread as this object is
// created on. // created on.
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
// Native I/O audio thread checker. // Native I/O audio thread checker.
rtc::ThreadChecker io_thread_checker_; SequenceChecker io_thread_checker_;
// Thread that this object is created on. // Thread that this object is created on.
rtc::Thread* thread_; rtc::Thread* thread_;

View File

@ -20,8 +20,8 @@
#include "rtc_base/ip_address.h" #include "rtc_base/ip_address.h"
#include "rtc_base/network.h" #include "rtc_base/network.h"
#include "rtc_base/socket_server.h" #include "rtc_base/socket_server.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread.h" #include "rtc_base/thread.h"
#include "rtc_base/thread_checker.h"
#include "test/network/network_emulation.h" #include "test/network/network_emulation.h"
namespace webrtc { namespace webrtc {

View File

@ -33,7 +33,6 @@
#include "rtc_base/task_queue_for_test.h" #include "rtc_base/task_queue_for_test.h"
#include "rtc_base/task_utils/repeating_task.h" #include "rtc_base/task_utils/repeating_task.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
namespace webrtc { namespace webrtc {
@ -525,7 +524,7 @@ class EmulatedEndpointImpl : public EmulatedEndpoint {
uint16_t NextPort() RTC_EXCLUSIVE_LOCKS_REQUIRED(receiver_lock_); uint16_t NextPort() RTC_EXCLUSIVE_LOCKS_REQUIRED(receiver_lock_);
rtc::RecursiveCriticalSection receiver_lock_; rtc::RecursiveCriticalSection receiver_lock_;
rtc::ThreadChecker enabled_state_checker_; SequenceChecker enabled_state_checker_;
const uint64_t id_; const uint64_t id_;
const std::string log_name_; const std::string log_name_;

View File

@ -24,8 +24,8 @@
#include "rtc_base/fake_clock.h" #include "rtc_base/fake_clock.h"
#include "rtc_base/platform_thread_types.h" #include "rtc_base/platform_thread_types.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/synchronization/yield_policy.h" #include "rtc_base/synchronization/yield_policy.h"
#include "rtc_base/thread_checker.h"
namespace webrtc { namespace webrtc {
namespace sim_time_impl { namespace sim_time_impl {

View File

@ -19,7 +19,7 @@
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h" #include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "rtc_base/constructor_magic.h" #include "rtc_base/constructor_magic.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
namespace webrtc { namespace webrtc {
@ -110,8 +110,8 @@ class CallStats : public Module, public RtcpRttStats {
// for the observers_ list, which makes the most common case lock free. // for the observers_ list, which makes the most common case lock free.
std::list<CallStatsObserver*> observers_; std::list<CallStatsObserver*> observers_;
rtc::ThreadChecker construction_thread_checker_; SequenceChecker construction_thread_checker_;
rtc::ThreadChecker process_thread_checker_; SequenceChecker process_thread_checker_;
ProcessThread* const process_thread_; ProcessThread* const process_thread_;
bool process_thread_running_ RTC_GUARDED_BY(construction_thread_checker_); bool process_thread_running_ RTC_GUARDED_BY(construction_thread_checker_);

View File

@ -26,8 +26,8 @@
#include "rtc_base/rate_statistics.h" #include "rtc_base/rate_statistics.h"
#include "rtc_base/rate_tracker.h" #include "rtc_base/rate_tracker.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "video/quality_threshold.h" #include "video/quality_threshold.h"
#include "video/stats_counter.h" #include "video/stats_counter.h"
#include "video/video_quality_observer.h" #include "video/video_quality_observer.h"
@ -196,9 +196,9 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback,
RTC_GUARDED_BY(&mutex_); RTC_GUARDED_BY(&mutex_);
absl::optional<int64_t> last_estimated_playout_time_ms_ absl::optional<int64_t> last_estimated_playout_time_ms_
RTC_GUARDED_BY(&mutex_); RTC_GUARDED_BY(&mutex_);
rtc::ThreadChecker decode_thread_; SequenceChecker decode_thread_;
rtc::ThreadChecker network_thread_; SequenceChecker network_thread_;
rtc::ThreadChecker main_thread_; SequenceChecker main_thread_;
}; };
} // namespace webrtc } // namespace webrtc

View File

@ -31,7 +31,6 @@
#include "rtc_base/system/no_unique_address.h" #include "rtc_base/system/no_unique_address.h"
#include "rtc_base/task_utils/pending_task_safety_flag.h" #include "rtc_base/task_utils/pending_task_safety_flag.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "video/quality_threshold.h" #include "video/quality_threshold.h"
#include "video/stats_counter.h" #include "video/stats_counter.h"
#include "video/video_quality_observer2.h" #include "video/video_quality_observer2.h"
@ -215,7 +214,7 @@ class ReceiveStatisticsProxy : public VCMReceiveStatisticsCallback,
ScopedTaskSafety task_safety_; ScopedTaskSafety task_safety_;
RTC_NO_UNIQUE_ADDRESS SequenceChecker decode_queue_; RTC_NO_UNIQUE_ADDRESS SequenceChecker decode_queue_;
rtc::ThreadChecker main_thread_; SequenceChecker main_thread_;
RTC_NO_UNIQUE_ADDRESS SequenceChecker incoming_render_queue_; RTC_NO_UNIQUE_ADDRESS SequenceChecker incoming_render_queue_;
}; };

View File

@ -18,7 +18,7 @@
#include "modules/include/module.h" #include "modules/include/module.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "video/stream_synchronization.h" #include "video/stream_synchronization.h"
namespace webrtc { namespace webrtc {
@ -57,7 +57,7 @@ class RtpStreamsSynchronizer : public Module {
StreamSynchronization::Measurements audio_measurement_ RTC_GUARDED_BY(mutex_); StreamSynchronization::Measurements audio_measurement_ RTC_GUARDED_BY(mutex_);
StreamSynchronization::Measurements video_measurement_ RTC_GUARDED_BY(mutex_); StreamSynchronization::Measurements video_measurement_ RTC_GUARDED_BY(mutex_);
rtc::ThreadChecker process_thread_checker_; SequenceChecker process_thread_checker_;
int64_t last_sync_time_ RTC_GUARDED_BY(&process_thread_checker_); int64_t last_sync_time_ RTC_GUARDED_BY(&process_thread_checker_);
int64_t last_stats_log_ms_ RTC_GUARDED_BY(&process_thread_checker_); int64_t last_stats_log_ms_ RTC_GUARDED_BY(&process_thread_checker_);
}; };

View File

@ -48,7 +48,6 @@
#include "rtc_base/synchronization/sequence_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/system/no_unique_address.h" #include "rtc_base/system/no_unique_address.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "video/buffered_frame_decryptor.h" #include "video/buffered_frame_decryptor.h"
#include "video/rtp_video_stream_receiver_frame_transformer_delegate.h" #include "video/rtp_video_stream_receiver_frame_transformer_delegate.h"
@ -387,7 +386,7 @@ class RtpVideoStreamReceiver : public LossNotificationSender,
// Used to validate the buffered frame decryptor is always run on the correct // Used to validate the buffered frame decryptor is always run on the correct
// thread. // thread.
rtc::ThreadChecker network_tc_; SequenceChecker network_tc_;
// Handles incoming encrypted frames and forwards them to the // Handles incoming encrypted frames and forwards them to the
// rtp_reference_finder if they are decryptable. // rtp_reference_finder if they are decryptable.
std::unique_ptr<BufferedFrameDecryptor> buffered_frame_decryptor_ std::unique_ptr<BufferedFrameDecryptor> buffered_frame_decryptor_

View File

@ -21,8 +21,8 @@
#include "call/video_receive_stream.h" #include "call/video_receive_stream.h"
#include "call/video_send_stream.h" #include "call/video_send_stream.h"
#include "rtc_base/event.h" #include "rtc_base/event.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_queue.h" #include "rtc_base/task_queue.h"
#include "rtc_base/thread_checker.h"
#include "video/send_delay_stats.h" #include "video/send_delay_stats.h"
#include "video/send_statistics_proxy.h" #include "video/send_statistics_proxy.h"
@ -97,7 +97,7 @@ class VideoSendStream : public webrtc::VideoSendStream {
absl::optional<float> GetPacingFactorOverride() const; absl::optional<float> GetPacingFactorOverride() const;
rtc::ThreadChecker thread_checker_; SequenceChecker thread_checker_;
rtc::TaskQueue* const worker_queue_; rtc::TaskQueue* const worker_queue_;
rtc::Event thread_sync_event_; rtc::Event thread_sync_event_;

View File

@ -33,7 +33,6 @@
#include "rtc_base/logging.h" #include "rtc_base/logging.h"
#include "rtc_base/numerics/safe_conversions.h" #include "rtc_base/numerics/safe_conversions.h"
#include "rtc_base/synchronization/sequence_checker.h" #include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/thread_checker.h"
#include "rtc_base/trace_event.h" #include "rtc_base/trace_event.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
#include "system_wrappers/include/field_trial.h" #include "system_wrappers/include/field_trial.h"

View File

@ -21,8 +21,8 @@
#include "modules/video_coding/timing.h" #include "modules/video_coding/timing.h"
#include "rtc_base/platform_thread.h" #include "rtc_base/platform_thread.h"
#include "rtc_base/synchronization/mutex.h" #include "rtc_base/synchronization/mutex.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_queue.h" #include "rtc_base/task_queue.h"
#include "rtc_base/thread_checker.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
namespace webrtc { namespace webrtc {

View File

@ -37,10 +37,10 @@
#include "rtc_base/numerics/exp_filter.h" #include "rtc_base/numerics/exp_filter.h"
#include "rtc_base/race_checker.h" #include "rtc_base/race_checker.h"
#include "rtc_base/rate_statistics.h" #include "rtc_base/rate_statistics.h"
#include "rtc_base/synchronization/sequence_checker.h"
#include "rtc_base/task_queue.h" #include "rtc_base/task_queue.h"
#include "rtc_base/task_utils/pending_task_safety_flag.h" #include "rtc_base/task_utils/pending_task_safety_flag.h"
#include "rtc_base/thread_annotations.h" #include "rtc_base/thread_annotations.h"
#include "rtc_base/thread_checker.h"
#include "system_wrappers/include/clock.h" #include "system_wrappers/include/clock.h"
#include "video/adaptation/video_stream_encoder_resource_manager.h" #include "video/adaptation/video_stream_encoder_resource_manager.h"
#include "video/encoder_bitrate_adjuster.h" #include "video/encoder_bitrate_adjuster.h"