Add a DCHECK to RegisterModule to make sure it's called on the controller thread.
BUG=4508 TBR=perkj Review URL: https://webrtc-codereview.appspot.com/43039004 Cr-Commit-Position: refs/heads/master@{#8925}
This commit is contained in:
@ -130,8 +130,7 @@ void ProcessThreadImpl::PostTask(rtc::scoped_ptr<ProcessTask> task) {
|
||||
}
|
||||
|
||||
void ProcessThreadImpl::RegisterModule(Module* module) {
|
||||
// Allowed to be called on any thread.
|
||||
// TODO(tommi): Disallow this ^^^
|
||||
DCHECK(thread_checker_.CalledOnValidThread());
|
||||
DCHECK(module);
|
||||
|
||||
#if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON))
|
||||
|
||||
Reference in New Issue
Block a user