diff options
author | tommi@webrtc.org <tommi@webrtc.org> | 2015-03-23 12:39:21 +0000 |
---|---|---|
committer | tommi@webrtc.org <tommi@webrtc.org> | 2015-03-23 12:39:38 +0000 |
commit | 1596a4f88b4b9ceaa82bee0306d5124561736072 (patch) | |
tree | b8e7acff6f4248b07c0b860160a4ab146f040b68 /webrtc | |
parent | d4e7d49628e39baf30e6aefb4536f1cf042e813b (diff) | |
download | webrtc-1596a4f88b4b9ceaa82bee0306d5124561736072.tar.gz |
Temporarily disable SetPriority when building with Chromium.
This is due to errors we were hitting with Chromium's sandbox policy for pthread_setschedparam.
R=magjed@webrtc.org, pbos@webrtc.org
BUG=
Review URL: https://webrtc-codereview.appspot.com/45839004
Cr-Commit-Position: refs/heads/master@{#8829}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8829 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc')
-rw-r--r-- | webrtc/system_wrappers/source/thread_posix.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webrtc/system_wrappers/source/thread_posix.cc b/webrtc/system_wrappers/source/thread_posix.cc index dc95cbcd73..e110af5a97 100644 --- a/webrtc/system_wrappers/source/thread_posix.cc +++ b/webrtc/system_wrappers/source/thread_posix.cc @@ -115,7 +115,11 @@ bool ThreadPosix::SetPriority(ThreadPriority priority) { DCHECK(thread_checker_.CalledOnValidThread()); if (!thread_) return false; - +#if defined(WEBRTC_CHROMIUM_BUILD) + // TODO(tommi): Switch to the same mechanism as Chromium uses for + // changing thread priorities. + return true; +#else #ifdef WEBRTC_THREAD_RR const int policy = SCHED_RR; #else @@ -141,6 +145,7 @@ bool ThreadPosix::SetPriority(ThreadPriority priority) { } return true; +#endif // defined(WEBRTC_CHROMIUM_BUILD) } void ThreadPosix::Run() { |