commit | 361981faa86668cd9b20a2837d0b166fc024cd9b | [log] [tgz] |
---|---|---|
author | tommi@webrtc.org <tommi@webrtc.org> | Thu Mar 19 14:44:18 2015 +0000 |
committer | tommi@webrtc.org <tommi@webrtc.org> | Thu Mar 19 14:45:42 2015 +0000 |
tree | a9468565eb478442942b3330e8f90b015cced530 | |
parent | c7d5a733b0b5d7d34f47772f5e1bb5e7420d2686 [diff] [blame] |
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
diff --git a/webrtc/modules/utility/source/process_thread_impl.cc b/webrtc/modules/utility/source/process_thread_impl.cc index 42c5924..33a1c4f 100644 --- a/webrtc/modules/utility/source/process_thread_impl.cc +++ b/webrtc/modules/utility/source/process_thread_impl.cc
@@ -69,8 +69,8 @@ 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()); }