- Add a SetPriority method to ThreadWrapper
- Remove 'priority' from CreateThread and related member variables from implementations - Make supplying a name for threads, non-optional BUG= R=magjed@webrtc.org Review URL: https://webrtc-codereview.appspot.com/44729004 Cr-Commit-Position: refs/heads/master@{#8810} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8810 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -510,7 +510,7 @@ void OpenSlesOutput::PlayerSimpleBufferQueueCallbackHandler(
|
||||
}
|
||||
|
||||
bool OpenSlesOutput::StartCbThreads() {
|
||||
play_thread_ = ThreadWrapper::CreateThread(CbThread, this, kRealtimePriority,
|
||||
play_thread_ = ThreadWrapper::CreateThread(CbThread, this,
|
||||
"opensl_play_thread");
|
||||
assert(play_thread_.get());
|
||||
OPENSL_RETURN_ON_FAILURE(
|
||||
@ -522,6 +522,7 @@ bool OpenSlesOutput::StartCbThreads() {
|
||||
assert(false);
|
||||
return false;
|
||||
}
|
||||
play_thread_->SetPriority(kRealtimePriority);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user