Index: webrtc/modules/utility/source/process_thread_impl.cc |
diff --git a/webrtc/modules/utility/source/process_thread_impl.cc b/webrtc/modules/utility/source/process_thread_impl.cc |
index 63e77d9f55d6453b3f5cbc5e4bdef5492e4f39eb..1da4225614c03b9aad3cf8eb2c2b542bff62a61e 100644 |
--- a/webrtc/modules/utility/source/process_thread_impl.cc |
+++ b/webrtc/modules/utility/source/process_thread_impl.cc |
@@ -76,9 +76,9 @@ void ProcessThreadImpl::Start() { |
m.module->ProcessThreadAttached(this); |
} |
- thread_ = |
- PlatformThread::CreateThread(&ProcessThreadImpl::Run, this, thread_name_); |
- RTC_CHECK(thread_->Start()); |
+ thread_.reset( |
+ new rtc::PlatformThread(&ProcessThreadImpl::Run, this, thread_name_)); |
+ thread_->Start(); |
} |
void ProcessThreadImpl::Stop() { |
@@ -93,7 +93,7 @@ void ProcessThreadImpl::Stop() { |
wake_up_->Set(); |
- RTC_CHECK(thread_->Stop()); |
+ thread_->Stop(); |
stop_ = false; |
// TODO(tommi): Since DeRegisterModule is currently being called from |