Remove definition of macro WEBRTC_THREAD_RR (it's unused).

Bug: None
Change-Id: Id0ba90502ca3acb9e44665fd4cf788679f2c6652
Reviewed-on: https://webrtc-review.googlesource.com/c/117163
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26246}
This commit is contained in:
Mirko Bonadei 2019-01-12 19:55:10 +01:00 committed by Commit Bot
parent 45340ca824
commit dcfe484f2e
2 changed files with 0 additions and 12 deletions

View file

@ -239,12 +239,8 @@ bool PlatformThread::SetPriority(ThreadPriority priority) {
// 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
const int policy = SCHED_FIFO;
#endif
const int min_prio = sched_get_priority_min(policy);
const int max_prio = sched_get_priority_max(policy);
if (min_prio == -1 || max_prio == -1) {

View file

@ -42,8 +42,6 @@ rtc_static_library("system_wrappers") {
]
if (is_android) {
defines += [ "WEBRTC_THREAD_RR" ]
if (build_with_mozilla) {
include_dirs = [
"/config/external/nspr",
@ -58,8 +56,6 @@ rtc_static_library("system_wrappers") {
}
if (is_linux) {
defines += [ "WEBRTC_THREAD_RR" ]
if (!build_with_chromium) {
deps += [ ":cpu_features_linux" ]
}
@ -67,10 +63,6 @@ rtc_static_library("system_wrappers") {
libs += [ "rt" ]
}
if (is_ios || is_mac) {
defines += [ "WEBRTC_THREAD_RR" ]
}
if (is_win) {
libs += [ "winmm.lib" ]