mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Bug 885190 - Remove real-time thread policy from WebRTC code. r=derf
This commit is contained in:
parent
fa3bea4976
commit
98a93ac63d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user