| Index: base/threading/platform_thread_linux.cc
|
| diff --git a/base/threading/platform_thread_linux.cc b/base/threading/platform_thread_linux.cc
|
| index 4057ede947e2ebfb7a86a7c7c250ce1d10a167ba..93c040bed056630b0eb175ea9ac8863b60516262 100644
|
| --- a/base/threading/platform_thread_linux.cc
|
| +++ b/base/threading/platform_thread_linux.cc
|
| @@ -29,7 +29,6 @@ namespace internal {
|
| namespace {
|
| #if !defined(OS_NACL)
|
| const struct sched_param kRealTimePrio = {8};
|
| -const struct sched_param kResetPrio = {0};
|
| #endif
|
| } // namespace
|
|
|
| @@ -42,17 +41,7 @@ const ThreadPriorityToNiceValuePair kThreadPriorityToNiceValueMap[4] = {
|
|
|
| bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority) {
|
| #if !defined(OS_NACL)
|
| - ThreadPriority current_priority;
|
| - if (priority != ThreadPriority::REALTIME_AUDIO &&
|
| - GetCurrentThreadPriorityForPlatform(¤t_priority) &&
|
| - current_priority == ThreadPriority::REALTIME_AUDIO) {
|
| - // If the pthread's round-robin scheduler is already enabled, and the new
|
| - // priority will use setpriority() instead, the pthread scheduler should be
|
| - // reset to use SCHED_OTHER so that setpriority() just works.
|
| - pthread_setschedparam(pthread_self(), SCHED_OTHER, &kResetPrio);
|
| - return false;
|
| - }
|
| - return priority == ThreadPriority::REALTIME_AUDIO &&
|
| + return priority == ThreadPriority::REALTIME_AUDIO &&
|
| pthread_setschedparam(pthread_self(), SCHED_RR, &kRealTimePrio) == 0;
|
| #else
|
| return false;
|
| @@ -103,8 +92,6 @@ void PlatformThread::SetName(const std::string& name) {
|
|
|
| void InitThreading() {}
|
|
|
| -void InitOnThread() {}
|
| -
|
| void TerminateOnThread() {}
|
|
|
| size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) {
|
|
|