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

Unified Diff: webrtc/modules/audio_device/mac/audio_device_mac.cc

Issue 1476453002: Clean up PlatformThread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IsRunning DCHECK Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_device/mac/audio_device_mac.cc
diff --git a/webrtc/modules/audio_device/mac/audio_device_mac.cc b/webrtc/modules/audio_device/mac/audio_device_mac.cc
index 14e6bbdfbb63ebea71f335f5786e8be7ce83166b..3449188dc0c9bf9b90b9a285ab44e6b675a18def 100644
--- a/webrtc/modules/audio_device/mac/audio_device_mac.cc
+++ b/webrtc/modules/audio_device/mac/audio_device_mac.cc
@@ -1665,11 +1665,11 @@ int32_t AudioDeviceMac::StartRecording()
}
RTC_DCHECK(!capture_worker_thread_.get());
- capture_worker_thread_ =
- PlatformThread::CreateThread(RunCapture, this, "CaptureWorkerThread");
+ capture_worker_thread_.reset(
+ new rtc::PlatformThread(RunCapture, this, "CaptureWorkerThread"));
RTC_DCHECK(capture_worker_thread_.get());
capture_worker_thread_->Start();
- capture_worker_thread_->SetPriority(kRealtimePriority);
+ capture_worker_thread_->SetPriority(rtc::kRealtimePriority);
OSStatus err = noErr;
if (_twoDevices)
@@ -1820,10 +1820,10 @@ int32_t AudioDeviceMac::StartPlayout()
}
RTC_DCHECK(!render_worker_thread_.get());
- render_worker_thread_ =
- PlatformThread::CreateThread(RunRender, this, "RenderWorkerThread");
+ render_worker_thread_.reset(
+ new rtc::PlatformThread(RunRender, this, "RenderWorkerThread"));
render_worker_thread_->Start();
- render_worker_thread_->SetPriority(kRealtimePriority);
+ render_worker_thread_->SetPriority(rtc::kRealtimePriority);
if (_twoDevices || !_recording)
{
« no previous file with comments | « webrtc/modules/audio_device/mac/audio_device_mac.h ('k') | webrtc/modules/audio_device/win/audio_device_wave_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698