Allow setting thread priorities in Chromium on all but linux platforms.
The previous check was overly broad, so narrowing it down to linux only. R=pbos@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/43929004 Cr-Commit-Position: refs/heads/master@{#8837} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8837 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
39fc1d3d48
commit
a3ffc56cee
@ -115,7 +115,7 @@ bool ThreadPosix::SetPriority(ThreadPriority priority) {
|
|||||||
DCHECK(thread_checker_.CalledOnValidThread());
|
DCHECK(thread_checker_.CalledOnValidThread());
|
||||||
if (!thread_)
|
if (!thread_)
|
||||||
return false;
|
return false;
|
||||||
#if defined(WEBRTC_CHROMIUM_BUILD)
|
#if defined(WEBRTC_CHROMIUM_BUILD) && defined(WEBRTC_LINUX)
|
||||||
// TODO(tommi): Switch to the same mechanism as Chromium uses for
|
// TODO(tommi): Switch to the same mechanism as Chromium uses for
|
||||||
// changing thread priorities.
|
// changing thread priorities.
|
||||||
return true;
|
return true;
|
||||||
@ -145,7 +145,7 @@ bool ThreadPosix::SetPriority(ThreadPriority priority) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
#endif // defined(WEBRTC_CHROMIUM_BUILD)
|
#endif // defined(WEBRTC_CHROMIUM_BUILD) && defined(WEBRTC_LINUX)
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThreadPosix::Run() {
|
void ThreadPosix::Run() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user