Backout change b371db089894 (bug 1138620) due to backout of bug 970307.

This commit is contained in:
Cervantes Yu 2015-05-19 14:31:20 +08:00
parent 4ecdb5c175
commit 7d37597e83
3 changed files with 5 additions and 15 deletions

View File

@ -13,7 +13,7 @@ interface nsIThread;
/**
* An interface for creating and locating nsIThread instances.
*/
[scriptable, uuid(04092259-4498-4c82-ac52-f9225eb114d0)]
[scriptable, uuid(1be89eca-e2f7-453b-8d38-c11ba247f6f3)]
interface nsIThreadManager : nsISupports
{
/**
@ -65,11 +65,4 @@ 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();
};

View File

@ -430,18 +430,13 @@ nsThreadManager::GetHighestNumberOfThreads()
return mHighestNumberOfThreads;
}
NS_IMETHODIMP
#ifdef MOZ_NUWA_PROCESS
void
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)
{

View File

@ -72,6 +72,8 @@ 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|.