Bug 885190 - Remove real-time thread policy from WebRTC code. r=derf

This commit is contained in:
EKR 2013-06-22 12:29:56 -07:00
parent fa3bea4976
commit 98a93ac63d

View File

@ -207,11 +207,21 @@ bool ThreadPosix::Start(unsigned int& thread_id)
int result = pthread_attr_setdetachstate(&attr_, PTHREAD_CREATE_DETACHED);
// Set the stack stack size to 1M.
result |= pthread_attr_setstacksize(&attr_, 1024 * 1024);
#if 0
// Temporarily remove the attempt to set this to real-time scheduling.
//
// See: https://code.google.com/p/webrtc/issues/detail?id=1956
//
// To be removed when upstream is fixed.
#ifdef WEBRTC_THREAD_RR
const int policy = SCHED_RR;
#else
const int policy = SCHED_FIFO;
#endif
#else
const int policy = SCHED_OTHER;
#endif
event_->Reset();
// If pthread_create was successful, a thread was created and is running.
// Don't return false if it was successful since if there are any other