Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: webrtc/modules/utility/source/process_thread_impl.cc

Issue 1460043002: Don't call the Pass methods of rtc::Buffer, rtc::scoped_ptr, and rtc::ScopedVector (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Restore the Pass methods Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 return time_now + interval; 32 return time_now + interval;
33 } 33 }
34 } 34 }
35 35
36 ProcessThread::~ProcessThread() {} 36 ProcessThread::~ProcessThread() {}
37 37
38 // static 38 // static
39 rtc::scoped_ptr<ProcessThread> ProcessThread::Create( 39 rtc::scoped_ptr<ProcessThread> ProcessThread::Create(
40 const char* thread_name) { 40 const char* thread_name) {
41 return rtc::scoped_ptr<ProcessThread>(new ProcessThreadImpl(thread_name)) 41 return rtc::scoped_ptr<ProcessThread>(new ProcessThreadImpl(thread_name));
42 .Pass();
43 } 42 }
44 43
45 ProcessThreadImpl::ProcessThreadImpl(const char* thread_name) 44 ProcessThreadImpl::ProcessThreadImpl(const char* thread_name)
46 : wake_up_(EventWrapper::Create()), 45 : wake_up_(EventWrapper::Create()),
47 stop_(false), 46 stop_(false),
48 thread_name_(thread_name) {} 47 thread_name_(thread_name) {}
49 48
50 ProcessThreadImpl::~ProcessThreadImpl() { 49 ProcessThreadImpl::~ProcessThreadImpl() {
51 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 50 RTC_DCHECK(thread_checker_.CalledOnValidThread());
52 RTC_DCHECK(!thread_.get()); 51 RTC_DCHECK(!thread_.get());
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 227 }
229 } 228 }
230 229
231 int64_t time_to_wait = next_checkpoint - TickTime::MillisecondTimestamp(); 230 int64_t time_to_wait = next_checkpoint - TickTime::MillisecondTimestamp();
232 if (time_to_wait > 0) 231 if (time_to_wait > 0)
233 wake_up_->Wait(static_cast<unsigned long>(time_to_wait)); 232 wake_up_->Wait(static_cast<unsigned long>(time_to_wait));
234 233
235 return true; 234 return true;
236 } 235 }
237 } // namespace webrtc 236 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698