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:
Tommi
2015-04-02 18:34:37 +00:00
parent 7f375f0ef8
commit bc4b93453c

View File

@ -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))