Deprecating ThreadChecker specific interface.
All changes outside thread_checker.h are by:
s/CalledOnValidThread/IsCurrent/
s/DetachFromThread/Detach/
Bug: webrtc:9883
Change-Id: Idbb1086bff0817db58e770116acf4c9d60fae8b3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/131023
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27494}
diff --git a/modules/utility/source/process_thread_impl.cc b/modules/utility/source/process_thread_impl.cc
index 5c2f0ab..b3fbaef 100644
--- a/modules/utility/source/process_thread_impl.cc
+++ b/modules/utility/source/process_thread_impl.cc
@@ -46,7 +46,7 @@
: stop_(false), thread_name_(thread_name) {}
ProcessThreadImpl::~ProcessThreadImpl() {
- RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ RTC_DCHECK(thread_checker_.IsCurrent());
RTC_DCHECK(!thread_.get());
RTC_DCHECK(!stop_);
@@ -57,7 +57,7 @@
}
void ProcessThreadImpl::Start() {
- RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ RTC_DCHECK(thread_checker_.IsCurrent());
RTC_DCHECK(!thread_.get());
if (thread_.get())
return;
@@ -73,7 +73,7 @@
}
void ProcessThreadImpl::Stop() {
- RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ RTC_DCHECK(thread_checker_.IsCurrent());
if (!thread_.get())
return;
@@ -115,7 +115,7 @@
void ProcessThreadImpl::RegisterModule(Module* module,
const rtc::Location& from) {
- RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ RTC_DCHECK(thread_checker_.IsCurrent());
RTC_DCHECK(module) << from.ToString();
#if RTC_DCHECK_IS_ON
@@ -148,7 +148,7 @@
}
void ProcessThreadImpl::DeRegisterModule(Module* module) {
- RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ RTC_DCHECK(thread_checker_.IsCurrent());
RTC_DCHECK(module);
{