Clean up PlatformThread.
* Move PlatformThread to rtc::. * Remove ::CreateThread factory method. * Make non-scoped_ptr from a lot of invocations. * Make Start/Stop void. * Remove rtc::Thread priorities, which were unused and would collide. * Add ::IsRunning() to PlatformThread. BUG= R=tommi@webrtc.org Review URL: https://codereview.webrtc.org/1476453002 . Cr-Commit-Position: refs/heads/master@{#10812}
This commit is contained in:
@ -280,10 +280,10 @@ int32_t VideoCaptureModuleV4L2::StartCapture(
|
||||
//start capture thread;
|
||||
if (!_captureThread)
|
||||
{
|
||||
_captureThread = PlatformThread::CreateThread(
|
||||
VideoCaptureModuleV4L2::CaptureThread, this, "CaptureThread");
|
||||
_captureThread.reset(new rtc::PlatformThread(
|
||||
VideoCaptureModuleV4L2::CaptureThread, this, "CaptureThread"));
|
||||
_captureThread->Start();
|
||||
_captureThread->SetPriority(kHighPriority);
|
||||
_captureThread->SetPriority(rtc::kHighPriority);
|
||||
}
|
||||
|
||||
// Needed to start UVC camera - from the uvcview application
|
||||
|
||||
Reference in New Issue
Block a user