From dcfe484f2e1229374163ba66c4f83c6a02197415 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Sat, 12 Jan 2019 19:55:10 +0100 Subject: [PATCH] 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 Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#26246} --- rtc_base/platform_thread.cc | 4 ---- system_wrappers/BUILD.gn | 8 -------- 2 files changed, 12 deletions(-) diff --git a/rtc_base/platform_thread.cc b/rtc_base/platform_thread.cc index 1324069210..872ebb612e 100644 --- a/rtc_base/platform_thread.cc +++ b/rtc_base/platform_thread.cc @@ -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) { diff --git a/system_wrappers/BUILD.gn b/system_wrappers/BUILD.gn index ffd7a78e49..ee24c8bf18 100644 --- a/system_wrappers/BUILD.gn +++ b/system_wrappers/BUILD.gn @@ -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" ]