Add RTC_FROM_HERE location information to two DCHECKs in ProcessThread.
BUG=none TBR=kwiberg@webrtc.org Review-Url: https://codereview.webrtc.org/2967693002 Cr-Commit-Position: refs/heads/master@{#18937}
This commit is contained in:
parent
f88f72dd16
commit
cf39dd5d82
@ -118,14 +118,17 @@ void ProcessThreadImpl::PostTask(std::unique_ptr<rtc::QueuedTask> task) {
|
||||
void ProcessThreadImpl::RegisterModule(Module* module,
|
||||
const rtc::Location& from) {
|
||||
RTC_DCHECK(thread_checker_.CalledOnValidThread());
|
||||
RTC_DCHECK(module);
|
||||
RTC_DCHECK(module) << from.ToString();
|
||||
|
||||
#if RTC_DCHECK_IS_ON
|
||||
{
|
||||
// Catch programmer error.
|
||||
rtc::CritScope lock(&lock_);
|
||||
for (const ModuleCallback& mc : modules_)
|
||||
RTC_DCHECK(mc.module != module);
|
||||
for (const ModuleCallback& mc : modules_) {
|
||||
RTC_DCHECK(mc.module != module)
|
||||
<< "Already registered here: " << mc.location.ToString() << "\n"
|
||||
<< "Now attempting from here: " << from.ToString();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user