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:
@ -22,8 +22,8 @@
|
||||
#include "rtc_base/event.h"
|
||||
#include "rtc_base/platform_thread.h"
|
||||
#include "rtc_base/synchronization/mutex.h"
|
||||
#include "rtc_base/synchronization/sequence_checker.h"
|
||||
#include "rtc_base/thread_annotations.h"
|
||||
#include "rtc_base/thread_checker.h"
|
||||
|
||||
#if defined(WEBRTC_USE_X11)
|
||||
#include <X11/Xlib.h>
|
||||
@ -284,10 +284,10 @@ class AudioDeviceLinuxPulse : public AudioDeviceGeneric {
|
||||
uint8_t _playChannels;
|
||||
|
||||
// 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.
|
||||
// Currently only does RTC_DCHECK(thread_checker_.IsCurrent()).
|
||||
rtc::ThreadChecker thread_checker_;
|
||||
SequenceChecker thread_checker_;
|
||||
|
||||
bool _initialized;
|
||||
bool _recording;
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
#include <pulse/pulseaudio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "rtc_base/thread_checker.h"
|
||||
#include "rtc_base/synchronization/sequence_checker.h"
|
||||
|
||||
#ifndef UINT32_MAX
|
||||
#define UINT32_MAX ((uint32_t)-1)
|
||||
@ -103,10 +103,10 @@ class AudioMixerManagerLinuxPulse {
|
||||
bool _paObjectsSet;
|
||||
|
||||
// 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.
|
||||
// Currently only does RTC_DCHECK(thread_checker_.IsCurrent()).
|
||||
rtc::ThreadChecker thread_checker_;
|
||||
SequenceChecker thread_checker_;
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user