commit | bc4b93453c4935ee0857f80e82c437c6722df951 | [log] [tgz] |
---|---|---|
author | Tommi <tommi@webrtc.org> | Thu Apr 02 18:34:37 2015 +0000 |
committer | Tommi <tommi@webrtc.org> | Thu Apr 02 18:34:43 2015 +0000 |
tree | e2240ed66a5fce1308cc857690f114fa42402b1b | |
parent | 7f375f0ef8101c7f24f90067759bfa84b35f1c87 [diff] [blame] |
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}
diff --git a/webrtc/modules/utility/source/process_thread_impl.cc b/webrtc/modules/utility/source/process_thread_impl.cc index ca319ad..4ce1675 100644 --- a/webrtc/modules/utility/source/process_thread_impl.cc +++ b/webrtc/modules/utility/source/process_thread_impl.cc
@@ -130,8 +130,7 @@ } 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))