Use scoped_ptr for ThreadWrapper::CreateThread.

BUG=
R=henrika@webrtc.org, pbos@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#8794}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8794 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tommi@webrtc.org
2015-03-19 14:44:18 +00:00
parent c7d5a733b0
commit 361981faa8
67 changed files with 222 additions and 527 deletions

View File

@ -69,8 +69,8 @@ void ProcessThreadImpl::Start() {
for (ModuleCallback& m : modules_)
m.module->ProcessThreadAttached(this);
thread_.reset(ThreadWrapper::CreateThread(
&ProcessThreadImpl::Run, this, kNormalPriority, "ProcessThread"));
thread_ = ThreadWrapper::CreateThread(
&ProcessThreadImpl::Run, this, kNormalPriority, "ProcessThread");
CHECK(thread_->Start());
}