Backed out changeset daa19810f688 (bug 1138620)

This commit is contained in:
Carsten "Tomcat" Book 2015-05-19 11:44:37 +02:00
Родитель 6f6e49a360
Коммит 532048239b
3 изменённых файлов: 15 добавлений и 5 удалений

Просмотреть файл

@ -13,7 +13,7 @@ interface nsIThread;
/**
* An interface for creating and locating nsIThread instances.
*/
[scriptable, uuid(1be89eca-e2f7-453b-8d38-c11ba247f6f3)]
[scriptable, uuid(04092259-4498-4c82-ac52-f9225eb114d0)]
interface nsIThreadManager : nsISupports
{
/**
@ -65,4 +65,11 @@ interface nsIThreadManager : nsISupports
* application process.
*/
readonly attribute boolean isMainThread;
/**
* Informs the thread manager to not monitor the status of the current thread.
* This method only works on platforms with Nuwa enabled; on other platforms,
* it throws an error.
*/
[noscript] void setIgnoreThreadStatus();
};

Просмотреть файл

@ -430,13 +430,18 @@ nsThreadManager::GetHighestNumberOfThreads()
return mHighestNumberOfThreads;
}
#ifdef MOZ_NUWA_PROCESS
void
NS_IMETHODIMP
nsThreadManager::SetIgnoreThreadStatus()
{
#ifdef MOZ_NUWA_PROCESS
GetCurrentThreadStatusInfo()->mIgnored = true;
return NS_OK;
#else
return NS_ERROR_NOT_IMPLEMENTED;
#endif
}
#ifdef MOZ_NUWA_PROCESS
void
nsThreadManager::SetThreadIdle(nsIRunnable **aReturnRunnable)
{

Просмотреть файл

@ -72,8 +72,6 @@ public:
}
#ifdef MOZ_NUWA_PROCESS
void SetIgnoreThreadStatus();
// |SetThreadWorking| and |SetThreadIdle| set status of thread that is
// currently running. They get thread status information from TLS and pass
// the information to |SetThreadIsWorking|.