Backed out changeset 333a899fb5e6 (bug 1198381)

This commit is contained in:
Carsten "Tomcat" Book
2016-10-25 12:32:56 +02:00
parent 3fb3787b20
commit 4ba5ac3176
12 changed files with 4 additions and 413 deletions

View File

@@ -16,8 +16,6 @@
#include <unistd.h>
#endif
#include "MainThreadIdlePeriod.h"
using namespace mozilla;
static MOZ_THREAD_LOCAL(bool) sTLSIsMainThread;
@@ -101,11 +99,6 @@ nsThreadManager::Init()
return rv;
}
{
nsCOMPtr<nsIIdlePeriod> idlePeriod = new MainThreadIdlePeriod();
mMainThread->RegisterIdlePeriod(idlePeriod.forget());
}
// We need to keep a pointer to the current thread, so we can satisfy
// GetIsMainThread calls that occur post-Shutdown.
mMainThread->GetPRThread(&mMainPRThread);