Skip to content

Commit

Permalink
Add a DCHECK to RegisterModule to make sure it's called on the contro…
Browse files Browse the repository at this point in the history
…ller thread.

BUG=4508
TBR=perkj

Review URL: https://webrtc-codereview.appspot.com/43039004

Cr-Commit-Position: refs/heads/master@{#8925}
  • Loading branch information
Tommi committed Apr 2, 2015
1 parent 7f375f0 commit bc4b934
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webrtc/modules/utility/source/process_thread_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bc4b934

Please sign in to comment.